diff options
| author | 2019-04-02 16:56:15 +0100 | |
|---|---|---|
| committer | 2019-04-02 16:56:15 +0100 | |
| commit | 0b1c07b1ed9e509936f1d61959cc5dc8de7bfe29 (patch) | |
| tree | c6068da2583b877ffbd09bb3c3d359cc650dae8e /modules/format_activity.py | |
| parent | Correctly 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.py | 2 |
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) |
