Attach channel object to formatted.rename events

This commit is contained in:
jesopo 2019-03-06 13:39:09 +00:00
parent 77dd36cbf6
commit 61acf6cd8e

View file

@ -176,7 +176,8 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.rename") @utils.hook("received.rename")
def rename(self, event): def rename(self, event):
line = "%s was renamed to %s" % (event["old_name"], event["new_name"]) line = "%s was renamed to %s" % (event["old_name"], event["new_name"])
self._event("rename", event["server"], line, event["old_name"]) self._event("rename", event["server"], line, event["old_name"],
channel=event["channel"])
@utils.hook("received.376") @utils.hook("received.376")
def motd_end(self, event): def motd_end(self, event):