X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=hung.py;h=52f725b4d6d1a112ca43199be962d04bdb8e865f;hb=2ada8407b1d08b7aa1e7d27281135f05210ff317;hp=9517d2782ab66cddd546f147d8d74ce2ad1cd70d;hpb=7d71c6f52fd5741dbb8afcf31acafb7e481ecfcd;p=bots%2Fhung.git diff --git a/hung.py b/hung.py index 9517d27..52f725b 100755 --- a/hung.py +++ b/hung.py @@ -32,7 +32,7 @@ def get_config_logfile(serveur): def log(serveur,channel,auteur=None,message=None): f=open(get_config_logfile(serveur),"a") - if auteur==message==None: + if auteur == message == None: # alors c'est que c'est pas un channel mais juste une ligne de log chain="%s %s"%(time.strftime("%F %T"),channel) else: @@ -51,7 +51,8 @@ def ignore_event(serv, ev): else: exceptit = bool(irclib.mask_matches(usermask, exceptmask)) blackit = bool(irclib.mask_matches(usermask, blackmask)) - return blackit and not exceptit + if blackit and not exceptit: + return True class UnicodeBotError(Exception): pass