comparison mcabber/src/jabglue.c @ 998:f984baa9a789

Do not use JEP-22 in MUC rooms
author Mikael Berthe <mikael@lilotux.net>
date Fri, 03 Nov 2006 21:10:30 +0100
parents d0d0cd9e39c4
children 9687ecc59303
comparison
equal deleted inserted replaced
997:d0d0cd9e39c4 998:f984baa9a789
460 xmlnode_insert_cdata(y, subject, (unsigned) -1); 460 xmlnode_insert_cdata(y, subject, (unsigned) -1);
461 } 461 }
462 462
463 #if defined JEP0022 || defined JEP0085 463 #if defined JEP0022 || defined JEP0085
464 // If typing notifications are disabled, we can skip all this stuff... 464 // If typing notifications are disabled, we can skip all this stuff...
465 if (chatstates_disabled) 465 if (chatstates_disabled || type == ROSTER_TYPE_ROOM)
466 goto jb_send_msg_no_chatstates; 466 goto jb_send_msg_no_chatstates;
467 467
468 rname = strchr(jid, JID_RESOURCE_SEPARATOR); 468 rname = strchr(jid, JID_RESOURCE_SEPARATOR);
469 barejid = jidtodisp(jid); 469 barejid = jidtodisp(jid);
470 sl_buddy = roster_find(barejid, jidsearch, ROSTER_TYPE_USER); 470 sl_buddy = roster_find(barejid, jidsearch, ROSTER_TYPE_USER);