From 66397cb24a86ccd55cafe7996c253a238d8d76a5 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 15 Jul 2018 15:22:37 +0100 Subject: [PATCH] Made part/quit print_activity functions more uniform --- modules/print_activity.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/print_activity.py b/modules/print_activity.py index 747d732f..58dcbcf9 100644 --- a/modules/print_activity.py +++ b/modules/print_activity.py @@ -56,7 +56,7 @@ class Module(object): if not self.bot.args.verbose: self.print_line(event, "%s left %s%s" % (nickname, event["channel"].name, "" if not event[ - "reason"] else ": %s" % event["reason"])) + "reason"] else " (%s)" % event["reason"])) def part(self, event): self._on_part(event, event["user"].nickname) def self_part(self, event): @@ -75,8 +75,7 @@ class Module(object): if not self.bot.args.verbose: self.print_line(event, "%s kicked %s from %s%s" % ( event["user"].nickname, nickname, event["channel"].name, - " (%s)" % event["reason"] if event[ - "reason"] else "")) + "" if not event["reason"] else " (%s)" % event["reason"])) def kick(self, event): self._on_kick(event, event["target_user"].nickname) def self_kick(self, event):