Ignore:
Timestamp:
2015-02-21T06:12:38Z (10 years ago)
Author:
dequis <dx@…>
Children:
eee3a5a
Parents:
7733b8c
git-author:
dequis <dx@…> (19-07-14 19:18:17)
git-committer:
dequis <dx@…> (21-02-15 06:12:38)
Message:

Use imcb_buddy_nick_hint to suggest jabber nicknames

Also grab potential nicks from the "mention_name" attribute (hipchat)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/iq.c

    r7733b8c r75ad761  
    388388                char *name = xt_find_attr(c, "name");
    389389                char *sub = xt_find_attr(c, "subscription");
     390                char *mention_name = xt_find_attr(c, "mention_name");
     391                char *nick = mention_name ? : name;
    390392
    391393                if (jid && sub) {
     
    396398                                if (name) {
    397399                                        imcb_rename_buddy(ic, jid, name);
     400                                }
     401
     402                                if (nick) {
     403                                        imcb_buddy_nick_hint(ic, jid, nick);
    398404                                }
    399405                        } else if (strcmp(sub, "remove") == 0) {
Note: See TracChangeset for help on using the changeset viewer.