# HG changeset patch # User Charly COSTE # Date 1250512603 -7200 # Node ID 5aa4399c05304010dd939bcc6294fd9dff63d700 # Parent 1a1f2a0d35c79e78e3996f20a4d6b55cfa10e351 Fixed a "copy/paste" bug Signed-off-by: Charly COSTE diff --git a/bridge.py b/bridge.py --- a/bridge.py +++ b/bridge.py @@ -59,13 +59,12 @@ class bridge: self.irc_connection.join(self.irc_room) self.irc_connection.nick_callback = None self.bot.error('===> Debug: successfully connected on IRC side of bridge "'+str(self)+'"', debug=True) - elif self.protocol != 'both': - if error == 'nicknameinuse': - self.bot.error('Error: "'+self.bot.nickname+'" is already used in the IRC chan of bridge "'+str(self)+'"') - raise Exception('Error: "'+self.bot.nickname+'" is already used in the IRC chan of bridge "'+str(self)+'"') - elif error == 'erroneusnickname': - self.bot.error('Error: "'+self.bot.nickname+'" got "erroneusnickname" on bridge "'+str(self)+'"') - raise Exception('Error: "'+self.bot.nickname+'" got "erroneusnickname" on bridge "'+str(self)+'"') + if error == 'nicknameinuse': + self.bot.error('Error: "'+self.bot.nickname+'" is already used in the IRC chan of bridge "'+str(self)+'"') + raise Exception('Error: "'+self.bot.nickname+'" is already used in the IRC chan of bridge "'+str(self)+'"') + elif error == 'erroneusnickname': + self.bot.error('Error: "'+self.bot.nickname+'" got "erroneusnickname" on bridge "'+str(self)+'"') + raise Exception('Error: "'+self.bot.nickname+'" got "erroneusnickname" on bridge "'+str(self)+'"') def addParticipant(self, protocol, nickname):