aboutsummaryrefslogtreecommitdiff
path: root/modules/format_activity.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-04-02 16:56:15 +0100
committerGravatar jesopo2019-04-02 16:56:15 +0100
commit0b1c07b1ed9e509936f1d61959cc5dc8de7bfe29 (patch)
treec6068da2583b877ffbd09bb3c3d359cc650dae8e /modules/format_activity.py
parentCorrectly support SETNAME being targetted at us (diff)
signature
Set PART `reason` to "" when it's None
Diffstat (limited to 'modules/format_activity.py')
-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 898c864e..78415a3a 100644
--- a/modules/format_activity.py
+++ b/modules/format_activity.py
@@ -78,7 +78,7 @@ class Module(ModuleManager.BaseModule):
def _on_part(self, event, user):
reason = event["reason"]
- reason = reason if not reason else " (%s)" % reason
+ reason = "" if not reason else " (%s)" % reason
line = "- %s left %s%s" % (user.nickname, event["channel"].name, reason)
self._event("part", event["server"], line, event["channel"].name,
channel=event["channel"], user=user)