changeset 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 7d1745ca1dc2
children 3f651f4fdb4f
files bot.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bot.py
+++ b/bot.py
@@ -246,7 +246,7 @@ class bot(Thread):
 				self.error('connection.nick_callback='+str(connection.nick_callback), debug=True)
 			return
 		elif event.eventtype() == 'namreply':
-			for nickname in re.split(' [@]?', event.arguments()[2].strip()):
+			for nickname in re.split(' [@\+]?', event.arguments()[2].strip()):
 				try:
 					connection.bridge.addParticipant('irc', nickname)
 				except: