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:
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