Permalink
Browse files

Handle always_use_nicks more gracefully

Add MUC buddies before applying nick changes
  • Loading branch information...
Chemrat authored and dequis committed Oct 12, 2017
1 parent 861de54 commit f75aaac5e9c0a0ce6e19c3d167ae41acc02f95b1
Showing with 2 additions and 1 deletion.
  1. +2 −1 protocols/jabber/conference.c
@@ -350,11 +350,12 @@ void jabber_chat_pkt_presence(struct im_connection *ic, struct jabber_buddy *bud
*s = 0; /* Should NEVER be NULL, but who knows... */
}
imcb_chat_add_buddy(chat, bud->ext_jid);
if (bud != jc->me && (jc->flags & JCFLAG_ALWAYS_USE_NICKS) && !(bud->flags & JBFLAG_IS_ANONYMOUS)) {
imcb_buddy_nick_change(ic, bud->ext_jid, bud->resource);
}
imcb_chat_add_buddy(chat, bud->ext_jid);
if (s) {
*s = '/';
}

0 comments on commit f75aaac

Please sign in to comment.