diff options
| author | 2018-07-20 13:12:55 +0100 | |
|---|---|---|
| committer | 2018-07-20 13:12:55 +0100 | |
| commit | e73d056b3472d84626ee78d301cecbba1d8445bb (patch) | |
| tree | 9e787849dcb0235ac85ca1d2432278d5004976e4 /modules/print_activity.py | |
| parent | Ban formats aren't bools (diff) | |
| signature | ||
include quit reasons in print_activity if present
Diffstat (limited to 'modules/print_activity.py')
| -rw-r--r-- | modules/print_activity.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |
