comparison participant.py @ 135:922858915907

handle xmpp.muc.RemoteServerNotFound Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 16 Jan 2010 12:36:37 +0100
parents 6a6885dbed25
children 7dc6a1764c4f
comparison
equal deleted inserted replaced
134:931a5edc7971 135:922858915907
97 if self.muc.connected == True: 97 if self.muc.connected == True:
98 self.muc.leave('Changed nickname to "'+self.nickname+'"') 98 self.muc.leave('Changed nickname to "'+self.nickname+'"')
99 except xmpp.muc.RoomIsFull: 99 except xmpp.muc.RoomIsFull:
100 self.bridge.bot.error('[Warning] XMPP MUC of bridge "'+str(self.bridge)+'" is full', send_to_admins=True) 100 self.bridge.bot.error('[Warning] XMPP MUC of bridge "'+str(self.bridge)+'" is full', send_to_admins=True)
101 self.bridge.say('[Warning] XMPP room is full') 101 self.bridge.say('[Warning] XMPP room is full')
102 except xmpp.muc.RemoteServerNotFound:
103 self.bridge._RemoteServerNotFound_handler()
102 104
103 if isinstance(self.xmpp_c, xmpp.client.Client): 105 if isinstance(self.xmpp_c, xmpp.client.Client):
104 self.bridge.bot.close_xmpp_connection(self.nickname) 106 self.bridge.bot.close_xmpp_connection(self.nickname)
105 self.xmpp_c = None 107 self.xmpp_c = None
106 108