_on_topic doesn't take an IRCChannel param

This commit is contained in:
jesopo 2019-03-05 09:30:50 +00:00
parent 2750f29989
commit b4f3ff3344

View file

@ -121,7 +121,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.333") @utils.hook("received.333")
def on_333(self, event): def on_333(self, event):
self._on_topic(event, event["setter"], "set", self._on_topic(event, event["setter"], "set",
event["channel"].topic, event["channel"]) event["channel"].topic)
unix_dt = datetime.datetime.utcfromtimestamp(event["set_at"]) unix_dt = datetime.datetime.utcfromtimestamp(event["set_at"])
dt = datetime.datetime.strftime(unix_dt, utils.ISO8601_PARSE) dt = datetime.datetime.strftime(unix_dt, utils.ISO8601_PARSE)