Dmitry Podgorny
efbf233c85
Define stanza's attributes as const char*
...
In most get-like funcitons libstrophe returns pointer to a string
that resides in an internal structure (e.g. xmpp_stanza_t). Hence,
Profanity must not change such strings. Define respective variables
as 'const char*' to reduce a chance of error and conform future
libstrophe's interface.
This patch mostly replaces 'char *' with 'const char*', but also
fixes two memory leaks after stanza_get_reason(). Add comment within
stanza_get_reason() to fix conflict with different allocator types.
2016-04-27 10:31:28 +00:00
James Booth
e53e94f1e2
Updated copyright
2016-02-14 22:54:46 +00:00
Michael Vetter
a6f27d3ea7
Fix pointer dereferencing
...
Setting the pointer to NULL had no effect outside the function so far.
2015-10-26 14:24:11 +01:00
James Booth
dd11334b06
Applied coding style to src/
2015-10-26 00:52:33 +00:00
James Booth
8119025120
Fixed tests for new command format
2015-07-27 00:04:48 +01:00
James Booth
e00a03f916
Removed wins_get_current_* functions
2015-06-17 19:49:55 +01:00
James Booth
2215a3791f
Added current window reference to command functions
2015-06-17 00:15:28 +01:00
James Booth
38ed9188d3
Moved ui/windows -> window_list
2015-06-15 19:26:28 +01:00
James Booth
6fd9b179a0
Optimised occupant comparisons, create utf8 collate key once
2015-05-07 00:26:24 +01:00
James Booth
71c2be599b
Use password for chat room invites
2015-03-29 03:16:41 +01:00
James Booth
24a45e5292
Set members only property when getting room features
2015-03-29 00:21:18 +00:00
James Booth
fac2b2cf66
Added check members only room to send mediated invites
2015-03-28 22:51:41 +00:00
Christian Storm
a1d14c4526
Fixed spelling.
2015-02-17 10:52:37 +01:00
James Booth
b3be26a214
Updated copyright
2015-02-10 23:16:09 +00:00
James Booth
4c6cfcdca0
Simplified autocompleters and command history
2015-01-16 22:50:40 +00:00
James Booth
0146e62576
Refactoring window types, removing recipient and from references - wip
2014-12-18 23:57:19 +00:00
James Booth
74a2d4601f
Removed hash_table_iter usage for room roster
2014-11-03 21:27:41 +00:00
James Booth
6a2bc79ca6
Fixed nick changes
2014-10-10 02:25:52 +01:00
James Booth
d6a4af9992
Refactor muc user handler
2014-10-07 00:46:08 +01:00
James Booth
78a1556f12
Added jid autocomplete for affiliation commands
2014-10-06 22:59:25 +01:00
James Booth
7584ddaa62
Added /room subject command
2014-10-05 03:05:46 +01:00
James Booth
60e0d5ef7b
Store real jid with occupants
2014-10-01 13:27:01 +01:00
James Booth
c90f4a37a3
Added /room <affiliation> command
2014-10-01 00:46:58 +01:00
James Booth
5879f497ad
Added /room <role> command
2014-10-01 00:27:25 +01:00
James Booth
7ec0dd0b83
Show occupants affiliation and role with /info in rooms
2014-09-30 21:58:18 +01:00
James Booth
0365e88b7b
wip - Store roles and affiliations with occupants
2014-09-30 19:46:35 +01:00
James Booth
4f7feedb65
Changed rooms to use Occupant type instead of PContact
2014-09-30 00:16:01 +01:00
James Booth
d25d6b4502
Tidied muc module
2014-09-28 22:09:20 +01:00
James Booth
41b49cb5d6
Store room affiliation and role
2014-09-28 01:55:24 +01:00
James Booth
a4f7932ed7
Check for NULL inside autocomplete_free
2014-09-26 00:48:48 +01:00
James Booth
ccbaa67a01
Create room list on muc_init
2014-09-26 00:43:00 +01:00
James Booth
70169f8ab9
Tidied muc.c
2014-09-26 00:27:58 +01:00
James Booth
0b2a1a1bc7
Renamed autocomplete function to get list
2014-09-26 00:06:50 +01:00
James Booth
0afdbfaf03
Removed NULL check when checking roster for nick
2014-09-25 20:59:59 +01:00
James Booth
2fb9989123
Added jid->hash lookup for capabilities
2014-09-20 23:50:19 +01:00
James Booth
b50b786dcc
Validate usage of /room config command, added UI messages
2014-09-03 22:56:33 +01:00
Dariusz Dwornikowski
1dcc028a71
Small spelling fixes in code and comments
2014-08-27 13:26:11 +02:00
James Booth
f9737251a6
Added license exemption for OpenSSL to source headers
2014-08-24 20:57:39 +01:00
James Booth
afde9d770a
Added ": " after nick autocomplete when start of message
2014-07-15 23:52:08 +01:00
James Booth
d02c8af532
Save chat room message prefix for autocomplete
2014-07-15 22:46:29 +01:00
James Booth
cc62fe376c
Finished chat room nick autocomplete
2014-07-15 21:30:23 +01:00
James Booth
2f3234a5f5
Added quote param to autocomplete_param_with_ac
2014-07-09 20:32:28 +01:00
James Booth
954661e59e
Added quote param to autocomplete_complete
2014-07-09 20:23:47 +01:00
James Booth
88180568e0
Removed debug, added check for 0 length string
2014-07-09 01:04:54 +01:00
James Booth
4b14c0c484
Added autocomplete for nicknames in MUC input text
...
issue #321
2014-07-09 00:36:09 +01:00
James Booth
235c893f28
Properly free muc hashtables
2014-06-15 22:39:46 +01:00
James Booth
d4afcd3258
Fixed memleak when leaving rooms
2014-06-15 20:37:03 +01:00
James Booth
b3d49f2a3c
Added backwards compatible g_list_free_full for glib < 2.28
2014-05-21 21:39:31 +01:00
James Booth
f247f367e9
Handle room subject and broadcasts sent before roster received
...
Issue #341
2014-05-05 20:13:22 +01:00
James Booth
d6e92f62dc
Fixed cppcheck warnings
2014-04-26 00:36:36 +01:00