include quit reasons in print_activity if present

This commit is contained in:
jesopo 2018-07-20 13:12:55 +01:00
parent 270bfe58ed
commit e73d056b34

View file

@ -68,7 +68,8 @@ class Module(object):
def on_quit(self, event): def on_quit(self, event):
if not self.bot.args.verbose: 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): def _on_kick(self, event, nickname):
if not self.bot.args.verbose: if not self.bot.args.verbose: