Changeset b8c336b for protocols/jabber/iq.c
- Timestamp:
- 2015-05-09T19:50:30Z (10 years ago)
- Children:
- ec8b369
- Parents:
- 356e2dd (diff), 5014380 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/iq.c
r356e2dd rb8c336b 373 373 static xt_status jabber_parse_roster(struct im_connection *ic, struct xt_node *node, struct xt_node *orig) 374 374 { 375 struct jabber_data *jd = ic->proto_data; 375 376 struct xt_node *query, *c; 376 377 int initial = (orig != NULL); … … 388 389 char *sub = xt_find_attr(c, "subscription"); 389 390 char *mention_name = xt_find_attr(c, "mention_name"); 390 char *nick = mention_name ? : name;391 391 392 392 if (jid && sub) { … … 399 399 } 400 400 401 if (nick) { 402 imcb_buddy_nick_hint(ic, jid, nick); 401 /* This could also be used to set the full name as nick for fb/gtalk, 402 * but i'm keeping the old (ugly?) default behavior just to be safe */ 403 if (mention_name && (jd->flags & JFLAG_HIPCHAT)) { 404 imcb_buddy_nick_hint(ic, jid, mention_name); 403 405 } 404 406 } else if (strcmp(sub, "remove") == 0) {
Note: See TracChangeset
for help on using the changeset viewer.