From 015c05016255df0dc06e6ebb2e21c7b8dbe34de4 Mon Sep 17 00:00:00 2001 From: "Saturnin, le bot IRC" Date: Sat, 25 May 2013 23:14:12 +0200 Subject: [PATCH] typos and misconfigurations --- config.py | 2 +- saturnin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 9678491..9f2768f 100644 --- a/config.py +++ b/config.py @@ -99,4 +99,4 @@ times_up_delays = [60*10, 60*20] times_up_sentences = [u"I stayed alive, you're too slow !!!"] ignored_pseudos = r'^Soldat\d+$' -ignored_pan_masks = [r'*!leger@zamok.crans.org', u"jben!*@*"] +ignored_pan_masks = [("*!leger@zamok.crans.org", "jben!*@*")] diff --git a/saturnin.py b/saturnin.py index 3b43531..4903ec3 100755 --- a/saturnin.py +++ b/saturnin.py @@ -60,7 +60,7 @@ def ignore_pan(serv, ev): """Retourne ``True`` si il faut ignorer ce pan.""" for (blackmask, exceptmask) in config.ignored_pan_masks: usermask = ev.source() - return bool(irclib.mask_matches(usermask, blackmask) and not irclib.mask_matches(usermasl, exceptmask)) + return bool(irclib.mask_matches(usermask, blackmask) and not irclib.mask_matches(usermask, exceptmask)) class UnicodeBotError(Exception): pass -- 2.39.2