changeset 220:5726a0833537

minor syntax change in bot.py Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 07 Mar 2010 12:37:36 +0100
parents 63289aa1dea7
children 1a82d5d40d90
files bot.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/bot.py
+++ b/bot.py
@@ -465,9 +465,8 @@ class Bot(threading.Thread):
 		
 		
 		nickname = None
-		if event.source() != None:
-			if '!' in event.source():
-				nickname = event.source().split('!')[0]
+		if event.source() and '!' in event.source():
+			nickname = event.source().split('!')[0]
 		
 		
 		# A string representation of the event