Changeset b8c336b for protocols/jabber


Ignore:
Timestamp:
2015-05-09T19:50:30Z (9 years ago)
Author:
dequis <dx@…>
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.
Message:

Merge branch 'develop' into feat/hip-cat

Conflicts:

protocols/jabber/hipchat.c
protocols/jabber/iq.c
protocols/jabber/jabber.h

Location:
protocols/jabber
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/hipchat.c

    r356e2dd rb8c336b  
    4747        jd->flags &= ~JFLAG_STREAM_RESTART;
    4848
    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)) {
    5953                return XT_ABORT;
    6054        }
     
    8478{
    8579        struct xt_node *query, *name_node;
    86 
    87         //char *name;
    8880
    8981        if (!(query = xt_find_node(node->children, "query"))) {
  • protocols/jabber/iq.c

    r356e2dd rb8c336b  
    373373static xt_status jabber_parse_roster(struct im_connection *ic, struct xt_node *node, struct xt_node *orig)
    374374{
     375        struct jabber_data *jd = ic->proto_data;
    375376        struct xt_node *query, *c;
    376377        int initial = (orig != NULL);
     
    388389                char *sub = xt_find_attr(c, "subscription");
    389390                char *mention_name = xt_find_attr(c, "mention_name");
    390                 char *nick = mention_name ? : name;
    391391
    392392                if (jid && sub) {
     
    399399                                }
    400400
    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);
    403405                                }
    404406                        } else if (strcmp(sub, "remove") == 0) {
  • protocols/jabber/jabber.c

    r356e2dd rb8c336b  
    428428        }
    429429
    430         jabber_get_vcard(ic, bud ? bud->full_jid : who);
     430        jabber_get_vcard(ic, who);
    431431}
    432432
Note: See TracChangeset for help on using the changeset viewer.