]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
"dégage" n'updatait pas la chanlist
authorVincent Le Gallic <legallic@crans.org>
Sun, 13 May 2012 21:58:09 +0000 (23:58 +0200)
committerVincent Le Gallic <legallic@crans.org>
Sun, 13 May 2012 21:58:09 +0000 (23:58 +0200)
basile.py

index 75ede3ed5703353cbab7f1889c51e43d9a71f496..10433ccfe39a2abe54db1dd83863c27c85becc73 100755 (executable)
--- a/basile.py
+++ b/basile.py
@@ -678,6 +678,8 @@ class Basile(ircbot.SingleServerIRCBot):
                                            or auteur in self.overops):
                     serv.part(canal,message="Éjecté par %s"%(auteur))
                     log(self.serveur,canal,auteur,message+"[successful]")
+                    if canal in self.chanlist:
+                        self.chanlist.remove(canal)
                 else:
                     serv.privmsg(canal,"%s: Non, je reste !"%(auteur))
                     log(self.serveur,canal,auteur,message+"[failed]")