about summary refs log tree commit diff stats
path: root/src/xmpp/presence.c
Commit message (Collapse)AuthorAgeFilesLines
* Respect silent nick change in mucsMarcoPolo-PasTonMolo2022-05-261-0/+2
| | | | | | | | | Profanity would ignore the silent nick change in some places. The roster and history would show the correct nick, new messages from the current user and the "Autojoined <jid> as <nick>" message would show the wrong one. This commit fixes that problem. Fixes https://github.com/profanity-im/profanity/issues/757
* presence: guard against invalid inputMichael Vetter2022-01-271-3/+12
| | | | | | | | | | | | | | | | | | | | | | It shouldn't happen that we get the presence stanza without a resource. https://datatracker.ietf.org/doc/html/rfc6120 ``` Implementation Note: It is the server's responsibility to deliver only stanzas that are addressed to the client's full JID or the user's bare JID; thus, there is no need for the client to check the 'to' address of incoming stanzas. However, if the client does check the 'to' address then it is suggested to check at most the bare JID portion (not the full JID), since the 'to' address might be the user's bare JID, the client's current full JID, or even a full JID with a different resourcepart (e.g., in the case of so- called "offline messages" as described in [XEP-0160]). ``` Let's not segfault though. Close https://github.com/profanity-im/profanity/issues/1630
* first step to remove libmesodeSteffen Jaeckel2021-10-271-6/+0
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Apply coding styleMichael Vetter2020-07-071-205/+201
|
* Revert "Apply coding style"Michael Vetter2020-07-071-206/+210
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-210/+206
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Review logging in presence.cMichael Vetter2020-04-141-5/+4
| | | | | Some stuff just floods the log file. We only need this when debugging. Others are useless without more info.
* Add context to autocomplete_with_func and use it for omemo trust commandPaul Fariello2020-01-311-1/+1
| | | | Fix #1068
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Remove prefix from stanza idMichael Vetter2019-10-171-5/+5
| | | | | We sent `prof_prefix_uuid` as id. Where the prefix was also optional. We don't need this at all.
* Update copyright to include 2019Michael Vetter2019-01-221-1/+1
|
* Move ID generation to xmpp folderMichael Vetter2018-08-301-5/+5
| | | | | | | | | | | create_unique_id() was changed to use UUIDs instead of a counter in the last commit. Since now it depends on connection_create_uuid() which is in the xmpp subfolder the function should also be moved there. Renamed it to connection_create_stanza_id() and moved it to src/xmpp/connection.c. Discussion happened in https://github.com/boothj5/profanity/pull/1010
* Update copyrightJames Booth2018-01-211-1/+1
|
* Allow previous autocompletion with shift tabJames Booth2017-04-011-7/+7
|
* Update CopyrightJames Booth2017-01-281-1/+1
|
* Remove status from cl_ev_presence_sendJames Booth2017-01-151-3/+2
| | | | fixes #888
* Use hash table for bookmarksJames Booth2016-08-211-0/+3
|
* Tidy presence.cJames Booth2016-08-201-249/+311
|
* Use libstrophe xmpp_presence_new convenience functionJames Booth2016-08-201-3/+2
|
* Use libstrophe convenience functions for stanza attributesJames Booth2016-08-201-11/+11
|
* Rename caps_contains -> caps_cache_containsJames Booth2016-08-131-2/+2
|
* Rename rooms vars in _send_room_presenceJames Booth2016-07-251-8/+6
|
* Tidy headersJames Booth2016-07-241-5/+6
|
* Update GPL link in headersJames Booth2016-07-241-1/+1
|
* Move available resources to connection structJames Booth2016-05-071-2/+2
|
* Move connection fulljid functionJames Booth2016-05-061-1/+1
|
* Rename jabber_ functionsJames Booth2016-05-061-9/+9
|
* Add session.cJames Booth2016-05-051-4/+5
|
* Renamed connection.c -> session.cJames Booth2016-05-051-1/+1
|
* Tidy xmpp headersJames Booth2016-05-041-1/+2
|
* Rename stanza handler init functionsJames Booth2016-05-021-1/+1
|
* Free stanza text and DiscoInfo featuresJames Booth2016-05-021-0/+2
|
* Free stanza text on plugin send hooksJames Booth2016-05-011-0/+1
|
* Define stanza's attributes as const char*Dmitry Podgorny2016-04-271-27/+29
| | | | | | | | | | | | 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.
* Fix typo: diso -> discoDominik Heidler2016-04-011-1/+1
|
* Removed #AX_PREFIX_CONFIG_HJames Booth2016-03-311-3/+3
|
* Use one stanza handler per type (message, iq, presence)James Booth2016-03-281-126/+93
| | | | Allows plugins to stop stanza processing
* Added basic stanza receive eooksJames Booth2016-03-271-2/+33
|
* Use xmpp_send_raw_string instead of xmpp_send_rawJames Booth2016-03-261-4/+4
|
* Added stanza send hooks for pluginsJames Booth2016-03-261-7/+41
|
* 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
|/
* Removed ui_handle_room_join_errorJames Booth2015-11-021-1/+1
|
* Removed ui_input_nonblocking()James Booth2015-11-011-3/+3
|
* Applied coding style to src/xmpp/James Booth2015-10-261-38/+30
|
* Moved idle time check for last activityJames Booth2015-10-141-1/+3
|
* Added auto xa option, tidied autoaway codeJames Booth2015-09-271-1/+3
|
* Check for libmesode, fall back to libstropheJames Booth2015-09-211-0/+9
|
* Fixed various jid and account mem leaksJames Booth2015-06-241-0/+1
|