Changeset b8c336b for protocols/jabber
- 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. - Location:
- protocols/jabber
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/hipchat.c
r356e2dd rb8c336b 47 47 jd->flags &= ~JFLAG_STREAM_RESTART; 48 48 49 if (!jabber_get_roster(ic)) { 50 return XT_ABORT; 51 } 52 if (!jabber_iq_disco_server(ic)) { 53 return XT_ABORT; 54 } 55 if (!jabber_get_hipchat_profile(ic)) { 56 return XT_ABORT; 57 } 58 if (!jabber_iq_disco_muc(ic, muc_host)) { 49 if (!jabber_get_roster(ic) || 50 !jabber_iq_disco_server(ic) || 51 !jabber_get_hipchat_profile(ic) || 52 !jabber_iq_disco_muc(ic, muc_host)) { 59 53 return XT_ABORT; 60 54 } … … 84 78 { 85 79 struct xt_node *query, *name_node; 86 87 //char *name;88 80 89 81 if (!(query = xt_find_node(node->children, "query"))) { -
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) { -
protocols/jabber/jabber.c
r356e2dd rb8c336b 428 428 } 429 429 430 jabber_get_vcard(ic, bud ? bud->full_jid :who);430 jabber_get_vcard(ic, who); 431 431 } 432 432
Note: See TracChangeset
for help on using the changeset viewer.