From e73d056b3472d84626ee78d301cecbba1d8445bb Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 20 Jul 2018 13:12:55 +0100 Subject: include quit reasons in print_activity if present --- modules/print_activity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/print_activity.py b/modules/print_activity.py index 0a3d3c53..63043d54 100644 --- a/modules/print_activity.py +++ b/modules/print_activity.py @@ -68,7 +68,8 @@ class Module(object): def on_quit(self, event): if not self.bot.args.verbose: - self.print_line(event, "%s quit" % event["user"].nickname) + self.print_line(event, "%s quit%s" % (event["user"].nickname, + "" if not event["reason"] else " (%s" % event["reason"])) def _on_kick(self, event, nickname): if not self.bot.args.verbose: -- cgit v1.3.1-10-gc9f91