include quit reasons in print_activity if present
This commit is contained in:
parent
270bfe58ed
commit
e73d056b34
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue