From 7aaee8b3905a1484af58b8229bf08b940543df47 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 18 May 2012 00:14:02 +0200 Subject: [PATCH] 'fallait pas supprimer cette ligne... --- basile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basile.py b/basile.py index 941b335..ec74b34 100755 --- a/basile.py +++ b/basile.py @@ -384,7 +384,8 @@ class Basile(ircbot.SingleServerIRCBot): (auteur,fille,verbe)).encode("utf8")) def pourmoi(self, serv, message): """renvoie (False,lemessage) ou (True, le message amputé de "pseudo: ")""" - size=len(self.nick) + pseudo=self.nick + size=len(pseudo) if message[:size]==pseudo and len(message)>size and message[size]==":": return (True,message[size+1:].lstrip(" ")) else: -- 2.39.2