Send IRCUser object on formatted.quit event

This commit is contained in:
jesopo 2019-03-07 21:44:32 +00:00
parent c8f5f0b0ad
commit cbd6092ff1

View file

@ -163,7 +163,7 @@ class Module(ModuleManager.BaseModule):
if reason:
reason = " (%s)" % reason
line = "- %s quit%s" % (user.nickname, reason)
self._event("quit", event["server"], line, None)
self._event("quit", event["server"], line, None, user=user)
@utils.hook("received.quit")
def on_quit(self, event):
self._quit(event, event["user"], event["reason"])