Changeset 8f8a56f for protocols/jabber
- Timestamp:
- 2016-03-20T03:58:05Z (9 years ago)
- Branches:
- master
- Children:
- 3c3b916
- Parents:
- a42fda4
- git-author:
- dequis <dx@…> (24-01-16 13:22:08)
- git-committer:
- dequis <dx@…> (20-03-16 03:58:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/conference.c
ra42fda4 r8f8a56f 244 244 } 245 245 246 static int jabber_chat_has_other_resources(struct im_connection *ic, struct jabber_buddy *bud) 247 { 248 struct jabber_buddy *cur; 249 250 for (cur = jabber_buddy_by_jid(ic, bud->bare_jid, GET_BUDDY_FIRST); cur; cur = cur->next) { 251 if (cur != bud && jabber_compare_jid(cur->ext_jid, bud->ext_jid)) { 252 return TRUE; 253 } 254 } 255 256 return FALSE; 257 } 258 246 259 /* Not really the same syntax as the normal pkt_ functions, but this isn't 247 260 called by the xmltree parser directly and this way I can add some extra … … 333 346 } 334 347 } else if (type) { /* type can only be NULL or "unavailable" in this function */ 335 if ((bud->flags & JBFLAG_IS_CHATROOM) && bud->ext_jid ) {348 if ((bud->flags & JBFLAG_IS_CHATROOM) && bud->ext_jid && !jabber_chat_has_other_resources(ic, bud)) { 336 349 char *reason = NULL; 337 350 char *status = NULL;
Note: See TracChangeset
for help on using the changeset viewer.