From dfd56d4949a5eaa140efe63eb74e10d2dcade0e2 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Tue, 17 Jul 2012 16:32:40 +0200 Subject: [PATCH] =?utf8?q?:-=C2=B0=20bis?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- themis.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 !") -- 2.39.2