comparison bot.py @ 2:f2d0a8b448db

Fixed interpretation of IRC "namreply" Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 16 Aug 2009 16:20:46 +0200
parents 4c842d23d4ce
children 3f651f4fdb4f
comparison
equal deleted inserted replaced
1:7d1745ca1dc2 2:f2d0a8b448db
244 else: 244 else:
245 self.error('=> Debug: no nick callback for "'+str(event.target())+'"', debug=True) 245 self.error('=> Debug: no nick callback for "'+str(event.target())+'"', debug=True)
246 self.error('connection.nick_callback='+str(connection.nick_callback), debug=True) 246 self.error('connection.nick_callback='+str(connection.nick_callback), debug=True)
247 return 247 return
248 elif event.eventtype() == 'namreply': 248 elif event.eventtype() == 'namreply':
249 for nickname in re.split(' [@]?', event.arguments()[2].strip()): 249 for nickname in re.split(' [@\+]?', event.arguments()[2].strip()):
250 try: 250 try:
251 connection.bridge.addParticipant('irc', nickname) 251 connection.bridge.addParticipant('irc', nickname)
252 except: 252 except:
253 pass 253 pass
254 return 254 return