we now support MSN conferences

This commit is contained in:
Yann Leboulanger 2005-10-04 11:33:57 +00:00
parent 59b2bf1d31
commit 4d8fd1dfc3
2 changed files with 8 additions and 0 deletions

View File

@ -276,6 +276,10 @@ class Connection:
if xtag.getNamespace() == common.xmpp.NS_MUC_USER and xtag.getTag('invite'): if xtag.getNamespace() == common.xmpp.NS_MUC_USER and xtag.getTag('invite'):
invite = xtag invite = xtag
elif xtag.getNamespace() == common.xmpp.NS_CONFERENCE:
room_jid = xtag.getAttr('jid')
self.dispatch('GC_INVITATION', (room_jid, frm, '', None))
return
# chatstates - look for chatstate tags in a message # chatstates - look for chatstate tags in a message
children = msg.getChildren() children = msg.getChildren()
for child in children: for child in children:

View File

@ -375,6 +375,10 @@ class Interface:
if self.remote and self.remote.is_enabled(): if self.remote and self.remote.is_enabled():
self.remote.raise_signal('ContactAbsence', (account, array)) self.remote.raise_signal('ContactAbsence', (account, array))
# stop non active file transfers # stop non active file transfers
else:
# It's maybe a GC_NOTIFY
self.handle_event_gc_notify(account, (jid, array[1], array[2], array[3], None, None, None, None, None, None, None))
def handle_event_msg(self, account, array): def handle_event_msg(self, account, array):
#('MSG', account, (jid, msg, time, encrypted, msg_type, subject, chatstate)) #('MSG', account, (jid, msg, time, encrypted, msg_type, subject, chatstate))