Show QUIT reason as "" not None
This commit is contained in:
parent
0b1c07b1ed
commit
b6d04152d0
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
self._on_kick(event, event["server"].nickname)
|
self._on_kick(event, event["server"].nickname)
|
||||||
|
|
||||||
def _quit(self, event, user, reason):
|
def _quit(self, event, user, reason):
|
||||||
reason = reason if not reason else " (%s)" % reason
|
reason = "" if not reason else " (%s)" % reason
|
||||||
line = "- %s quit%s" % (user.nickname, reason)
|
line = "- %s quit%s" % (user.nickname, reason)
|
||||||
self._event("quit", event["server"], line, None, user=user)
|
self._event("quit", event["server"], line, None, user=user)
|
||||||
@utils.hook("received.quit")
|
@utils.hook("received.quit")
|
||||||
|
|
Loading…
Reference in a new issue