Set PART reason
to "" when it's None
This commit is contained in:
parent
ad166a7d0a
commit
0b1c07b1ed
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
def _on_part(self, event, user):
|
def _on_part(self, event, user):
|
||||||
reason = event["reason"]
|
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)
|
line = "- %s left %s%s" % (user.nickname, event["channel"].name, reason)
|
||||||
self._event("part", event["server"], line, event["channel"].name,
|
self._event("part", event["server"], line, event["channel"].name,
|
||||||
channel=event["channel"], user=user)
|
channel=event["channel"], user=user)
|
||||||
|
|
Loading…
Reference in a new issue