diff participant.py @ 231:5f1e9211af03

fix for 48ad162772b79740e8ff580bde2c250b9957c126, we do need arguments in nick callbacks Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 07 Mar 2010 23:03:18 +0100
parents a434b73bde51
children cf4f00441628
line wrap: on
line diff
--- a/participant.py
+++ b/participant.py
@@ -114,7 +114,7 @@ class Participant:
 		self.irc_connection.connect(nick_callback=self._irc_nick_callback)
 	
 	
-	def _irc_nick_callback(self, error):
+	def _irc_nick_callback(self, error, arguments=None):
 		if not error:
 			self.irc_connection.join(self.bridge.irc_room, callback=self._irc_join_callback)
 		
@@ -126,7 +126,7 @@ class Participant:
 				
 				if self.bridge.mode == 'bypass':
 					new_duplicate_nickname = self._get_new_duplicate_nickname()
-					if new_duplicate_nickname != None:
+					if new_duplicate_nickname:
 						self.bridge.bot.error(3, '"'+self.duplicate_nickname+'" is already used or reserved on the IRC server of bridge "'+str(self.bridge)+'", trying "'+new_duplicate_nickname+'"', debug=True)
 						if self.duplicate_nickname == self.nickname:
 							self.bridge.say(say_levels.info, 'The nickname "'+self.duplicate_nickname+'" is used or reserved on the IRC server')