James Booth
d0c8ed462d
Add error handler only once
...
fixes #240
2013-09-22 00:19:11 +01:00
James Booth
ee8ff948bf
Use git revision in development strings
2013-09-17 01:28:35 +01:00
James Booth
70bbc2e344
Merge remote-tracking branch 'dmitry/fixes'
2013-08-26 14:49:47 +01:00
Dmitry Podgorny
7a9fcd53d2
fixed crash because of incorrect string releasing
2013-08-26 12:31:41 +03:00
Dmitry Podgorny
545a23e92f
removed strdup in autocomplete calls
2013-08-26 03:29:50 +03:00
Dmitry Podgorny
32e18fb1a5
remove octet_compare
...
strcmp provides the same functionality
2013-08-26 02:42:01 +03:00
Dmitry Podgorny
b1bfdf650a
fixed memory leaks in various files
2013-08-25 14:54:34 +03:00
Dmitry Podgorny
c7ec06ff65
removed strdup from g_string_append
2013-08-25 14:52:25 +03:00
Dmitry Podgorny
d6c90ac7ca
fixed indenting
2013-08-24 00:41:57 +03:00
Dmitry Podgorny
012366cf13
fixed memleak in _iq_handle_discoinfo_get
2013-08-24 00:40:23 +03:00
James Booth
6651b13bd0
Merge branch 'master' into nextdev
2013-08-05 23:18:19 +01:00
James Booth
42eef398b4
Free Jid
2013-08-05 23:12:10 +01:00
James Booth
c6e9a7455d
Undo change to stanza check for nick change return value
2013-08-05 23:08:30 +01:00
James Booth
1525be6133
Refactor MUC self presence checks
2013-08-05 22:55:11 +01:00
James Booth
55282e063d
Handle when servers dont send status 101 or jid for MUC nick changes
2013-08-05 21:20:07 +01:00
Dmitry Podgorny
a6e66cc571
fixed memory leaks
...
Also avoided several NULL pointer dereferences.
2013-08-03 14:38:38 +03:00
Dmitry Podgorny
0346fda0b3
most FREE_SET_NULL replaced with free
...
FREE_SET_NULL makes extra assignment of NULL for pointers in stack or
dynamic memory that is going to be freed.
FREE_SET_NULL is useful for pointers that can be used in future.
2013-08-03 14:27:07 +03:00
James Booth
66238641e0
Merge branch 'master' into nextdev
2013-07-22 22:09:51 +01:00
James Booth
a64b293878
Removed escaping XML as handled by libstrophe
...
4ad21c9283
2013-07-22 20:35:43 +01:00
James Booth
7906bd6a9d
Bookmarks: Move stanza pointer on in loop, check for autojoin "true"
2013-07-15 00:52:47 +01:00
Dmitry Podgorny
b9d29e9aa5
draft of bookmarks implementation
...
'/bookmark add' and '/bookmark remove' ain't finished
2013-07-14 23:58:02 +03:00
Dmitry Podgorny
6e23584575
improved autojoin logic
...
Delete id handler after timeout (5sec) if response isn't received
Auto join maximum 5 conferences
2013-07-14 17:08:49 +03:00
Dmitry Podgorny
ccbbd16d5f
Merge branch 'master' into bookmarks
2013-07-14 13:50:57 +03:00
Dmitry Podgorny
034cf730cc
use get_unique_id for bookmarks
2013-07-14 13:49:50 +03:00
James Booth
581c1e8b95
Coloured contact and subscription in /roster and /group output
2013-07-03 23:44:51 +01:00
Dmitry Podgorny
2837c4054f
initial support of autojoin for MUC
2013-06-30 18:59:38 +03:00
James Booth
2077834b10
Changed client type to 'console' as per http://xmpp.org/registrar/disco-categories.html#client
2013-06-25 01:00:24 +01:00
James Booth
d5e9ca649d
Show messages on /group add and /group remove
...
closes #189
closes #190
2013-06-23 17:38:30 +01:00
James Booth
dace47e5d3
Show message when removing contact from group when not in group
2013-06-23 16:35:13 +01:00
James Booth
265fff8f40
Show message when contact already in group
2013-06-23 16:29:42 +01:00
James Booth
b9fc61fd30
Moved stophe references in message send
2013-06-20 17:41:44 +01:00
James Booth
96496ca219
Merge remote-tracking branch 'dmitry/captcha-2' into captcha
2013-06-16 18:58:18 +01:00
Dmitry Podgorny
1f207beb99
fixed memory leaks in presence.c
2013-06-09 18:52:28 +03:00
Dmitry Podgorny
c84cb17bd4
added support of captcha in a MUC
2013-06-09 16:19:49 +03:00
Dmitry Podgorny
eff5986d38
fixed several memory leaks
...
And infinity loop in stanza_destroy_form().
2013-06-09 14:20:48 +03:00
James Booth
6082ab8778
Implemented /group command with no args (list groups)
2013-06-02 20:20:44 +01:00
James Booth
f72e7d89b8
Changed autocomplete for /group and /who
2013-06-02 17:51:38 +01:00
James Booth
9dd5456f88
Added group add and group remove to /roster command
2013-06-02 02:48:20 +01:00
James Booth
0e5d277c14
Added message in console on /roster remove
2013-06-02 00:24:22 +01:00
James Booth
65c09db19e
Added message in console on /roster add
2013-06-02 00:20:22 +01:00
James Booth
01bdc6ae5a
Added /roster remove command
2013-06-02 00:06:05 +01:00
James Booth
518b6721ff
Added /roster add command
2013-06-01 23:48:24 +01:00
James Booth
d49a01a9c3
Added roster list when using /roster with no args
2013-06-01 23:27:46 +01:00
James Booth
ae7da18d7e
Use waddstr for incoming messages to avoid truncation
...
fixes #8
2013-06-01 21:23:34 +01:00
James Booth
1ca2147844
Sort contacts on /who output
2013-05-30 21:47:30 +01:00
James Booth
d017999a91
Add groups to roster contacts
...
fixes #175
2013-05-22 23:38:52 +01:00
James Booth
2842b423d1
Refactor roster.c
2013-05-22 21:43:06 +01:00
James Booth
15c7820594
Reuse roster_add in roster_update
2013-05-22 21:15:05 +01:00
James Booth
c4e279202b
Removed unused offline_msg parameter from roster_add
2013-05-21 22:40:39 +01:00
James Booth
7b20d8d4f4
Refactored roster push handling
2013-05-21 22:00:42 +01:00
James Booth
5a8e667e58
Renamed roster_change_handle -> roster_change_name
2013-05-21 21:18:12 +01:00
James Booth
f4a3dd84ea
Renamed roster_barejid_from_handle -> roster_barejid_from_name
2013-05-21 21:12:00 +01:00
James Booth
8e4dd4b80f
Renamed handle, jid and resource in roster
...
Renamed to name, barejid and fulljid
2013-05-21 21:07:32 +01:00
James Booth
e489ef1ad5
Renamed _roster_handle_set -> _roster_handle_push
2013-05-21 20:58:50 +01:00
James Booth
d16a31d096
Renamed roster_jid_from_handle -> roster_barejid_from_handle
2013-05-21 20:50:05 +01:00
James Booth
4a8db64d7a
Roster handle changes handled correctly
2013-05-20 21:43:20 +01:00
James Booth
6c4b81d093
Added jid autocompleter for /roster nick command
2013-05-20 20:51:43 +01:00
James Booth
59a3a5fe9b
Use handle in /msg command
2013-05-19 23:35:02 +01:00
James Booth
1c41a46dce
Changing roster handle with no argument clears handle
2013-05-19 03:27:59 +01:00
James Booth
d300e8e763
Added /roster command with nick option to change handle
2013-05-19 02:07:01 +01:00
James Booth
c1ee75da40
Removed contact_list, moved roster logic to xmpp/roster module
2013-05-06 23:04:46 +01:00
James Booth
05f2d29396
Renamed contact_list_ functions to roster_
2013-05-06 22:32:58 +01:00
James Booth
097ea18dab
Tidied includes in iq.c
2013-05-06 22:00:11 +01:00
James Booth
3ae74feaa2
Created roster module, moved roster iq's
2013-05-06 21:53:59 +01:00
James Booth
78ff58cf77
Fixed error when losing connection and segfaulting on notify_remind()
2013-05-06 00:33:33 +01:00
James Booth
3d8d5214bb
Autocomplete "/sub allow" parameter from subscription requests
2013-05-05 23:42:11 +01:00
James Booth
53eeb0ef45
Use autocomplete instead of hash table for subscription requests
2013-05-05 23:20:27 +01:00
James Booth
90ac69beb3
Added /duck command to perform searches using duckduckgo chat bot
2013-05-05 02:31:04 +01:00
James Booth
34217e4d44
Include open subscription requests in desktop reminder notifications
...
closes #167
2013-04-27 23:57:51 +01:00
James Booth
81020e6d43
Added /invite for direct MUC invitations
2013-04-20 20:18:13 +01:00
James Booth
91d587a19f
Show shortened room jid if possible on invite
2013-04-18 22:49:46 +01:00
James Booth
f4041f049c
Handle when servers do not send fulljid with presence
...
A default resource "__prof_default" is created, and invisible to the
user for most purposes.
2013-04-07 19:19:02 +01:00
James Booth
b6095ca955
Show message in console when receiving chat room invites
2013-03-24 21:46:00 +00:00
James Booth
270dae472f
Added disco items to features in disco info responses
2013-03-24 17:45:12 +00:00
James Booth
ef7aacc709
Respond to disco items query
2013-03-24 17:40:46 +00:00
James Booth
d703301f7f
Respond to disco info requests without node attribute
2013-03-24 17:27:30 +00:00
James Booth
1c8cba352e
Refactor getting caps_key
2013-03-17 23:04:36 +00:00
James Booth
8d2e0656b4
Refactor show and status stanza handling
2013-03-17 22:21:05 +00:00
James Booth
e22970b304
Refactor resource handling in available handler
2013-03-17 21:53:34 +00:00
James Booth
e7202120cb
Renamed ID attribute for capabilities disco info request
2013-03-17 21:46:49 +00:00
James Booth
e2bc9bde74
Implemented output for /disco info
2013-03-14 23:41:36 +00:00
James Booth
7bd7c15994
Added output for /disco items
2013-03-14 22:18:21 +00:00
James Booth
681c3b6be2
Show name as well as jid for room list
2013-03-14 22:03:38 +00:00
James Booth
816c019ef8
Removed unnecessary NULL checks
2013-03-14 21:20:18 +00:00
James Booth
31cd507d3c
Added /disco command
2013-03-14 20:50:09 +00:00
James Booth
b960b76034
Added basic /rooms command to get chat room list
2013-03-13 23:38:26 +00:00
Dmitry Podgorny
ed2212a0ca
fixed crash in stanza_create_form when text is NULL
...
xmpp_stanza_get_text may return NULL.
Also fixed memory leak: xmpp_stanza_get_text returns new allocated
string and it must be freed by xmpp_free().
2013-03-12 21:08:50 +02:00
James Booth
c8088bea41
Tidied fix for id attributes that cause a segfault
...
fixes #151
2013-03-08 00:17:31 +00:00
James Booth
5c475d630a
Fixed problem with using id attribute with apostrophe.
...
Needs a better solution, but the current one stop the crash
2013-03-07 18:37:44 +00:00
James Booth
18b615c62f
Check for NULL connection and context
...
fixes #155
2013-03-02 21:35:00 +00:00
James Booth
aeb0bfa13c
Init and shutdown of libstrophe moved, free resources before creating
2013-02-27 23:14:41 +00:00
James Booth
24f0d9e6e5
Removed connection_shutdown function
2013-02-27 21:21:47 +00:00
James Booth
83171aff5b
Replace FREE_SET_NULLs with function call
2013-02-27 20:56:04 +00:00
James Booth
2ecf20195c
Split connection_free_resources
2013-02-27 20:54:38 +00:00
James Booth
8d1cc96bf2
Made connection free resources static function
2013-02-27 20:46:44 +00:00
James Booth
d0e0951943
Added debug to connection handler
2013-02-26 22:02:03 +00:00
James Booth
236895ec96
Check for resource in unavailable presence handler
2013-02-24 15:18:15 +00:00
James Booth
9f8a7f52a5
Add resource only when resourcepart in JID #152
2013-02-24 15:07:33 +00:00
James Booth
d1e28e44ca
Revert "Commented self presence handling #151 "
...
This reverts commit 872726c5aa
.
2013-02-21 08:14:41 +00:00
James Booth
872726c5aa
Commented self presence handling #151
2013-02-20 08:30:00 +00:00
James Booth
ec124a552c
Remove all from resource hash table, rather than destroy
2013-02-19 00:34:07 +00:00
James Booth
502d7dc9fe
Show available resources for current account with "/account"
2013-02-18 22:51:05 +00:00
James Booth
5a107459be
Tidied new command output, ordered features
2013-02-17 16:50:44 +00:00
James Booth
1a913b7d9b
Added ping to features
2013-02-17 16:43:26 +00:00
James Booth
e955df8894
Colour title on /caps and /software output
2013-02-17 16:39:37 +00:00
James Booth
c3b7388e61
Added chatstates to capabilities
2013-02-17 03:23:14 +00:00
James Booth
bced3d4b36
Added autocomplete for /software command
2013-02-17 02:10:56 +00:00
James Booth
44d2f8da7a
Added /caps command
2013-02-17 01:04:10 +00:00
James Booth
a84e4adee7
Show all resources ordered by priority with /info command
2013-02-17 00:05:57 +00:00
James Booth
b5e06a079c
Simple default resource hanlding on presence
2013-02-14 22:06:25 +00:00
James Booth
576be7921d
Tidy up presence module
2013-02-10 23:29:37 +00:00
James Booth
ebc87b8b82
Added usage of handlers to message and presence modules
2013-02-10 19:39:19 +00:00
James Booth
e922568770
Added resource_presence_t and contact_presence_t
2013-02-10 17:13:19 +00:00
James Booth
59e9b10d19
Removed presence from jabber_conn
2013-02-10 13:36:11 +00:00
James Booth
591f8a8dbf
Renamed jabber_presence_t->presence_t
2013-02-10 11:31:31 +00:00
James Booth
ec78914044
Only create contacts resource when online
2013-02-10 11:19:36 +00:00
James Booth
835906bada
Changed parameter to contact_list_add jid->barejid
2013-02-10 00:02:06 +00:00
James Booth
5e5590b047
Show detailed software/os information if available in capabilities
2013-02-05 23:06:30 +00:00
James Booth
895399427e
Removed debug from last commit
2013-02-05 20:38:07 +00:00
James Booth
523e4be1b8
SHA1 now generated correctly when data form included in caps
...
fixes #149
2013-02-05 20:36:21 +00:00
James Booth
c283908cc1
Send show, status, priority and caps when changing room nickname
2013-02-04 02:33:25 +00:00
James Booth
b94dc5ecdd
Moved setting presence status and show into functions
2013-02-04 02:19:31 +00:00
James Booth
eb26cab739
Use of const in connection.c
2013-02-04 00:37:10 +00:00
James Booth
99232b0530
Small tidy up in connection.c
2013-02-03 23:59:04 +00:00
James Booth
2cea263917
Added asserts
2013-02-03 23:46:20 +00:00
James Booth
9bc70e29e8
Removed jabber_restart function
2013-02-03 22:56:23 +00:00
James Booth
2ee0c4d328
Moved caps_init() out of xmpp.h
2013-02-03 22:46:32 +00:00
James Booth
0b40de5a4f
Moved private xmpp functions to connection.h
2013-02-03 22:40:54 +00:00
James Booth
1cd2d6c7c9
Moved function to get presence string from type to stanza.c
2013-02-03 22:18:40 +00:00
James Booth
1cea320a0c
Send entity capabilities and status when joining room
2013-02-03 20:09:56 +00:00
James Booth
0b740bb355
Added debugging to presence and iq handlers
2013-02-03 18:28:54 +00:00
James Booth
d327a0dd5a
Fixed crash on receiving dataform
2013-02-03 17:19:10 +00:00
James Booth
ca26452af6
Refactored getting boolean preferences
2013-02-03 02:35:04 +00:00
James Booth
9d34c41227
Added config dir to source
2013-02-02 21:59:29 +00:00
James Booth
fc5bfb7d33
Tidied #include's
2013-02-02 20:55:58 +00:00
James Booth
8cc4b55945
Removed caps functions from xmpp.h
2013-02-02 20:33:54 +00:00
James Booth
ccf71715ef
Removed presence functions from xmpp.h
2013-02-02 20:27:46 +00:00
James Booth
5e3d414ee0
Removed iq functions from xmpp.h
2013-02-02 20:22:39 +00:00
James Booth
59b79ec20c
Removed message handler function from xmpp.h
2013-02-02 20:18:23 +00:00
James Booth
bc2784dae6
Removed stanza functions from xmpp.h
2013-02-02 20:07:44 +00:00
James Booth
1d3739bb79
Added xmpp subdir to source
2013-02-02 19:47:41 +00:00