about summary refs log tree commit diff stats
path: root/src/xmpp/bookmark.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename id_handler_add -> iq_id_handler_addJames Booth2016-05-021-1/+1
|
* Define stanza's attributes as const char*Dmitry Podgorny2016-04-271-16/+17
| | | | | | | | | | | | 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.
* Removed #AX_PREFIX_CONFIG_HJames Booth2016-03-311-3/+3
|
* Use one stanza handler per type (message, iq, presence)James Booth2016-03-281-48/+5
| | | | Allows plugins to stop stanza processing
* Added basic stanza receive eooksJames Booth2016-03-271-7/+11
|
* Use xmpp_send_raw_string instead of xmpp_send_rawJames Booth2016-03-261-2/+2
|
* Added stanza send hooks for pluginsJames Booth2016-03-261-2/+20
|
* Merge branch 'master' into plugins-cJames Booth2016-02-141-1/+1
|\ | | | | | | | | | | Conflicts: src/main.c src/ui/console.c
| * Updated copyrightJames Booth2016-02-141-1/+1
| |
* | Added C plugin code from plugins branchJames Booth2016-02-141-3/+3
|/
* Applied coding style to src/xmpp/James Booth2015-10-261-11/+11
|
* Check for libmesode, fall back to libstropheJames Booth2015-09-211-1/+9
|
* Use null check convention in bookmark.cJames Booth2015-05-041-11/+11
|
* Moved server_events to event/James Booth2015-04-191-1/+1
|
* Updated copyrightJames Booth2015-02-101-1/+1
|
* Simplified autocompleters and command historyJames Booth2015-01-161-1/+1
|
* Removed function pointersJames Booth2014-12-221-27/+15
|
* Removed bookmark autojoin limitJames Booth2014-11-201-26/+15
|
* Tidied muc moduleJames Booth2014-09-281-5/+5
|
* Check for NULL inside autocomplete_freeJames Booth2014-09-261-3/+1
|
* Removed bookmarks todoJames Booth2014-08-311-1/+0
|
* Added license exemption for OpenSSL to source headersJames Booth2014-08-241-0/+12
|
* "/bookmark add foo" crash - fixJan Hacker2014-08-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | A user providing an invalid JID when creating a new bookmark (like 'foo') would reproducibly crash/segfault profanity, as it insists on checking string length behind the @ of the JID. However, it could be NULL if the user accidentally omitted it. The patch avoids the crash by NULL-checking and prevents getting there in the first place by checking the argument to "add". Backtrace of unpatched profanity with above command: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x00007fff85699732 in strlen () (gdb) bt #0 0x00007fff85699732 in strlen () #1 0x00000001000965d2 in xmpp_strdup () #2 0x0000000100095d6d in xmpp_stanza_set_attribute () #3 0x0000000100011c5c in _send_bookmarks () #4 0x00000001000115a8 in _bookmark_add () #5 0x000000010003320d in cmd_bookmark () #6 0x000000010002a0f2 in cmd_execute () #7 0x0000000100003a1d in process_input () #8 0x00000001000037c7 in prof_run () #9 0x0000000100045032 in main () (gdb)
* Added quote param to autocomplete_completeJames Booth2014-07-091-1/+1
|
* Renamed generate_unique_id -> create_unique_idJames Booth2014-06-151-1/+1
|
* Fixed usages of get_unique_id to free resultJames Booth2014-06-151-1/+2
|
* Use account muc_nick when no nick for bookmarkJames Booth2014-05-231-1/+4
|
* Refactored bookmarks to use option parser, allow bookmarking rooms with ↵James Booth2014-05-101-39/+128
| | | | passwords
* Chat room windows now created only after successful joinJames Booth2014-04-211-1/+1
|
* Fixed handling of room subjectJames Booth2014-04-131-1/+0
|
* Fixed "/bookmark remove" for disabling autojoinJames Booth2014-04-131-1/+0
| | | | Issue #194
* Refactored bookmark_removeJames Booth2014-04-131-10/+8
| | | | Issue #194
* Implemented "/bookmark remove" for private storageJames Booth2014-04-131-77/+101
| | | | Issue #194
* Clean up after removing bookmarkJames Booth2014-04-131-0/+2
| | | | Issue #194
* Implemented "/bookmark add" for private storageJames Booth2014-04-131-86/+73
| | | | Issue #194
* Tidied ui dependenciesJames Booth2014-04-061-2/+2
|
* Updated copyrightJames Booth2014-03-091-0/+21
|
* Refactored muc_room_is_active to only take room, rather than full jidJames Booth2014-03-081-1/+1
|
* Added test for /join with nick optionJames Booth2014-03-081-2/+2
|
* Adding password handling for joining chatroomsKristofer M White2014-02-271-1/+1
|
* Removed id from bookmarks addJames Booth2014-02-031-1/+0
|
* Implemented add bookmark for XEP-0223James Booth2014-02-021-0/+97
| | | | Issue #194
* Test message when removing autojoin for non existent bookmarkJames Booth2014-02-021-2/+10
|
* Show message on /bookmark remove when bookmark does not existJames Booth2014-02-021-1/+3
|
* Added message when bookmark updatedJames Booth2014-02-021-1/+3
|
* Don't show error for initial bookmarks requestJames Booth2014-01-251-4/+1
|
* Bind bookmark functions in main.cJames Booth2013-12-221-5/+10
|
* Dynamically bind xmpp module apiJames Booth2013-12-181-10/+15
|
* removed strdup in autocomplete callsDmitry Podgorny2013-08-261-2/+2
|
* Bookmarks: Move stanza pointer on in loop, check for autojoin "true"James Booth2013-07-151-2/+4
|