From a78ad2ff4511f29e3b4574e4d9bd33221a3e6e41 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 21 Jan 2006 22:12:13 +0000 Subject: [PATCH] recognize correctly gc invitation. Fixes #1366 --- src/common/connection.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index 6ee4491e4..8f7937d6f 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -395,10 +395,11 @@ class Connection: elif xtag.getNamespace() == common.xmpp.NS_MUC_USER and \ xtag.getTag('invite'): invite = xtag - # FIXME: Msn transport (CMSN1.2.1 and PyMSN0.10) do NOT RECOMMENDED - # invitation - # stanza (MUC JEP) remove in 2007, as we do not do NOT RECOMMENDED - elif xtag.getNamespace() == common.xmpp.NS_CONFERENCE: + # FIXME: Msn transport (CMSN1.2.1 and PyMSN0.10) do NOT RECOMMENDED + # invitation + # stanza (MUC JEP) remove in 2007, as we do not do NOT RECOMMENDED + for xtag in xtags: + if xtag.getNamespace() == common.xmpp.NS_CONFERENCE and not invite: room_jid = xtag.getAttr('jid') self.dispatch('GC_INVITATION', (room_jid, frm, '', None)) return