From: Vincent Le Gallic Date: Tue, 17 Jul 2012 14:32:40 +0000 (+0200) Subject: :-° bis X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=dfd56d4949a5eaa140efe63eb74e10d2dcade0e2;p=bots%2Fthemis.git :-° bis --- diff --git a/themis.py b/themis.py index 164bb2f..5062e50 100755 --- a/themis.py +++ b/themis.py @@ -656,7 +656,9 @@ class Themis(ircbot.SingleServerIRCBot): log(self.serveur,"%s kické de %s par %s (raison : %s)" %(victime,channel,auteur,raison)) time.sleep(2) serv.join(channel) - username = nm_to_u(ev.source()).lower() + username = irclib.nm_to_u(ev.source()).lower() + print ev.source() + print channel, username if channel == "#déprime" and "peb" in username or "becue" in username: time.sleep(5) serv.kick(auteur, "Va abuser de tes droits ailleurs !")