Mercurial > xib
comparison participant.py @ 86:bfa32b017fc9
First hack at an error notification system
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sun, 06 Sep 2009 15:34:49 +0200 |
parents | 5115ba7d5983 |
children | 810a6bed6c9c |
comparison
equal
deleted
inserted
replaced
85:dfa030c141f1 | 86:bfa32b017fc9 |
---|---|
61 if self.muc.connected == True: | 61 if self.muc.connected == True: |
62 self.muc.leave('Changed nickname to "'+self.nickname+'"') | 62 self.muc.leave('Changed nickname to "'+self.nickname+'"') |
63 self.bridge.bot.close_xmpp_connection(self.nickname) | 63 self.bridge.bot.close_xmpp_connection(self.nickname) |
64 self.xmpp_c = None | 64 self.xmpp_c = None |
65 except xmpp.muc.RoomIsFull: | 65 except xmpp.muc.RoomIsFull: |
66 self.bridge.bot.error('[Warning] XMPP MUC of bridge "'+str(self.bridge)+'" is full', debug=True) | 66 self.bridge.bot.error('[Warning] XMPP MUC of bridge "'+str(self.bridge)+'" is full', send_to_admins=True) |
67 self.bridge.say('[Warning] XMPP room is full') | 67 self.bridge.say('[Warning] XMPP room is full') |
68 self.bridge.bot.close_xmpp_connection(self.nickname) | 68 self.bridge.bot.close_xmpp_connection(self.nickname) |
69 self.xmpp_c = None | 69 self.xmpp_c = None |
70 | 70 |
71 | 71 |