Ignore:
Timestamp:
2015-05-28T04:10:55Z (5 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
a1d30c5, dd43c62
Parents:
24f113b
git-author:
dequis <dx@…> (24-07-14 10:41:47)
git-committer:
dequis <dx@…> (28-05-15 04:10:55)
Message:

jabber: Refactor conference message handling

  • Improve handling of "unknown 'from'"
  • Try a bit harder to detect the source of the message, and fall back to messages sent from a fake temporary user.
  • Fix receiving topic when it was set by someone who left the room.
  • Add jabber_get_bare_jid() utility function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber_util.c

    r24f113b r3d31618  
    820820        return TRUE;
    821821}
     822
     823/* Returns new reference! g_free() afterwards. */
     824char *jabber_get_bare_jid(char *jid)
     825{
     826        char *s = NULL;
     827
     828        if (jid == NULL) {
     829                return NULL;
     830        }
     831
     832        if ((s = strchr(jid, '/'))) {
     833                return g_strndup(jid, s - jid);
     834        } else {
     835                return g_strdup(jid);
     836        }
     837}
Note: See TracChangeset for help on using the changeset viewer.