Show QUIT reason as "" not None

This commit is contained in:
jesopo 2019-04-02 21:17:01 +01:00
parent 0b1c07b1ed
commit b6d04152d0

View file

@ -158,7 +158,7 @@ class Module(ModuleManager.BaseModule):
self._on_kick(event, event["server"].nickname)
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)
self._event("quit", event["server"], line, None, user=user)
@utils.hook("received.quit")