prevent traceback. Fixes #5202

This commit is contained in:
Yann Leboulanger 2009-08-06 00:07:23 +02:00
parent a79efe5af0
commit 1f760de1ff
1 changed files with 2 additions and 0 deletions

View File

@ -1880,6 +1880,8 @@ class Connection(ConnectionHandlers):
self.connection.send(iq)
def send_gc_config(self, room_jid, form):
if not self.connection:
return
iq = common.xmpp.Iq(typ = 'set', to = room_jid, queryNS =\
common.xmpp.NS_MUC_OWNER)
query = iq.getTag('query')