From b6d04152d03dfdef6db671cc8810915850026ab4 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 2 Apr 2019 21:17:01 +0100 Subject: [PATCH] Show QUIT reason as "" not None --- modules/format_activity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/format_activity.py b/modules/format_activity.py index 78415a3a..e254525b 100644 --- a/modules/format_activity.py +++ b/modules/format_activity.py @@ -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")