From: Saturnin, le bot IRC Date: Sat, 25 May 2013 21:14:12 +0000 (+0200) Subject: typos and misconfigurations X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=015c05016255df0dc06e6ebb2e21c7b8dbe34de4;p=bots%2Fsaturnin.git typos and misconfigurations --- 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