From dbe5bf98884e46debd42ee0fa791d268fcd261a0 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Thu, 20 Jun 2013 01:08:25 +0200 Subject: [PATCH] =?utf8?q?La=20fonction=20de=20blacklist,=20=C3=A7a=20marc?= =?utf8?q?he=20mieux=20si=20on=20l'utilise?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- basile.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/basile.py b/basile.py index c8518c4..66dab70 100755 --- a/basile.py +++ b/basile.py @@ -347,6 +347,8 @@ class Basile(ircbot.SingleServerIRCBot): def on_privmsg(self, serv, ev): """À la réception d'un message en privé.""" + if ignore_event(serv, ev): + return message = ev.arguments()[0] auteur = irclib.nm_to_n(ev.source()) try: @@ -591,6 +593,8 @@ class Basile(ircbot.SingleServerIRCBot): def on_pubmsg(self, serv, ev): """À la réception d'un message sur un channel.""" + if ignore_event(serv, ev): + return auteur = irclib.nm_to_n(ev.source()) canal = ev.target() message = ev.arguments()[0] @@ -804,6 +808,8 @@ class Basile(ircbot.SingleServerIRCBot): def on_action(self, serv, ev): """À la réception d'une action.""" + if ignore_event(serv, ev): + return action = ev.arguments()[0] auteur = irclib.nm_to_n(ev.source()) channel = ev.target() -- 2.39.2