Mercurial > xib
comparison participant.py @ 3:3f651f4fdb4f
Added IRC "part" event handling
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sun, 16 Aug 2009 17:10:12 +0200 |
parents | 4c842d23d4ce |
children | 012593ed4e12 |
comparison
equal
deleted
inserted
replaced
2:f2d0a8b448db | 3:3f651f4fdb4f |
---|---|
72 self.irc_connection.nick_callback = None | 72 self.irc_connection.nick_callback = None |
73 self.bridge.bot.error('===> Debug: "'+self.nickname+'" duplicate succesfully created on IRC side of bridge "'+str(self.bridge)+'"', debug=True) | 73 self.bridge.bot.error('===> Debug: "'+self.nickname+'" duplicate succesfully created on IRC side of bridge "'+str(self.bridge)+'"', debug=True) |
74 elif self.protocol != 'both': | 74 elif self.protocol != 'both': |
75 if error == 'nicknameinuse': | 75 if error == 'nicknameinuse': |
76 self.bridge.bot.error('===> Debug: "'+self.nickname+'" is already used in the IRC chan of bridge "'+str(self.bridge)+'"', debug=True) | 76 self.bridge.bot.error('===> Debug: "'+self.nickname+'" is already used in the IRC chan of bridge "'+str(self.bridge)+'"', debug=True) |
77 self.bridge.say('[Warning] The nickname "'+self.nickname+'" is used on both rooms, please avoid that if possible') | 77 self.bridge.say('[Warning] The nickname "'+self.nickname+'" is used on both rooms or reserved on the IRC server, please avoid that if possible') |
78 self.protocol = 'both' | 78 self.protocol = 'both' |
79 self.irc_connection.close() | 79 self.irc_connection.close() |
80 self.irc_connection = None | 80 self.irc_connection = None |
81 elif error == 'erroneusnickname': | 81 elif error == 'erroneusnickname': |
82 self.bridge.bot.error('===> Debug: "'+self.nickname+'" got "erroneusnickname" on bridge "'+str(self.bridge)+'"', debug=True) | 82 self.bridge.bot.error('===> Debug: "'+self.nickname+'" got "erroneusnickname" on bridge "'+str(self.bridge)+'"', debug=True) |