]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
'fallait pas supprimer cette ligne...
authorVincent Le Gallic <legallic@crans.org>
Thu, 17 May 2012 22:14:02 +0000 (00:14 +0200)
committerVincent Le Gallic <legallic@crans.org>
Thu, 17 May 2012 22:14:02 +0000 (00:14 +0200)
basile.py

index 941b3353658d6d25530d736668662dba90a6ce03..ec74b340372df5c70939cad6f28c4fe50a4e0c7f 100755 (executable)
--- 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: