]> gitweb.pimeys.fr Git - bots/deconnaisseur.git/commitdiff
Correction (après modification du sourcecode d'irclib car l'implémentation
authorVincent Le Gallic <legallic@crans.org>
Thu, 24 May 2012 23:48:54 +0000 (01:48 +0200)
committerVincent Le Gallic <legallic@crans.org>
Thu, 24 May 2012 23:48:54 +0000 (01:48 +0200)
  de PART est incorrecte)

deconnaisseur.py

index c2bec86881f75bd7f41db5bf0d4458eabc668059..85de106a5084f97230eb4461572a423b14abebc4 100755 (executable)
@@ -567,11 +567,11 @@ class Deconnaisseur(ircbot.SingleServerIRCBot):
     def quitter(self,chan,leave_message=None):
         if leave_message==None:
             leave_message=random.choice(config_leave_messages)
-        self.serv.part(chan,leave_message.encode("utf8"))
+        self.serv.part(chan,message=leave_message.encode("utf8"))
     
     def mourir(self):
         quit_message=random.choice(config_quit_messages)
-        self.die(message=config_quit_message)
+        self.die(msg=quit_message)
     
     def get_scores(self):
         f=open(config_score_file)