aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-04-02 21:17:01 +0100
committerGravatar jesopo2019-04-02 21:17:01 +0100
commitb6d04152d03dfdef6db671cc8810915850026ab4 (patch)
treebce1daa460b2b4afdebf96761540945256bccbee
parentSet PART `reason` to "" when it's None (diff)
signature
Show QUIT reason as "" not None
-rw-r--r--modules/format_activity.py2
1 files changed, 1 insertions, 1 deletions
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")