Made part/quit print_activity functions more uniform
This commit is contained in:
parent
d3e8920e2a
commit
66397cb24a
1 changed files with 2 additions and 3 deletions
|
@ -56,7 +56,7 @@ class Module(object):
|
||||||
if not self.bot.args.verbose:
|
if not self.bot.args.verbose:
|
||||||
self.print_line(event, "%s left %s%s" % (nickname,
|
self.print_line(event, "%s left %s%s" % (nickname,
|
||||||
event["channel"].name, "" if not event[
|
event["channel"].name, "" if not event[
|
||||||
"reason"] else ": %s" % event["reason"]))
|
"reason"] else " (%s)" % event["reason"]))
|
||||||
def part(self, event):
|
def part(self, event):
|
||||||
self._on_part(event, event["user"].nickname)
|
self._on_part(event, event["user"].nickname)
|
||||||
def self_part(self, event):
|
def self_part(self, event):
|
||||||
|
@ -75,8 +75,7 @@ class Module(object):
|
||||||
if not self.bot.args.verbose:
|
if not self.bot.args.verbose:
|
||||||
self.print_line(event, "%s kicked %s from %s%s" % (
|
self.print_line(event, "%s kicked %s from %s%s" % (
|
||||||
event["user"].nickname, nickname, event["channel"].name,
|
event["user"].nickname, nickname, event["channel"].name,
|
||||||
" (%s)" % event["reason"] if event[
|
"" if not event["reason"] else " (%s)" % event["reason"]))
|
||||||
"reason"] else ""))
|
|
||||||
def kick(self, event):
|
def kick(self, event):
|
||||||
self._on_kick(event, event["target_user"].nickname)
|
self._on_kick(event, event["target_user"].nickname)
|
||||||
def self_kick(self, event):
|
def self_kick(self, event):
|
||||||
|
|
Loading…
Reference in a new issue