if_silenced_f -> is_silenced_f

This commit is contained in:
jesopo 2019-05-13 20:58:44 +01:00
parent 0fbf993201
commit 0625102fa7

View file

@ -34,7 +34,7 @@ class Module(ModuleManager.BaseModule):
if is_ignored_f(event["server"], event["user"], "karma"): if is_ignored_f(event["server"], event["user"], "karma"):
return return
if_silenced_f = self.exports.get_one("is-silenced", lambda _: False) is_silenced_f = self.exports.get_one("is-silenced", lambda _: False)
if is_silenced_f(event["channel"]): if is_silenced_f(event["channel"]):
return return