Attach channel object to formatted.rename events
This commit is contained in:
parent
77dd36cbf6
commit
61acf6cd8e
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue