diff --git a/plugins/Channel/plugin.py b/plugins/Channel/plugin.py index a5b82428a..d6332f9d4 100644 --- a/plugins/Channel/plugin.py +++ b/plugins/Channel/plugin.py @@ -381,8 +381,12 @@ class Channel(callbacks.Plugin): msg.prefix, bannedNick) raise callbacks.ArgumentError elif bannedNick == irc.nick: - self.log.warning('%q tried to make me kban myself.', msg.prefix) - irc.error(_('I cowardly refuse to kickban myself.')) + if kick: + self.log.warning('%q tried to make me kban myself.', msg.prefix) + irc.error(_('I cowardly refuse to kickban myself.')) + else: + self.log.warning('%q tried to make me ban myself.', msg.prefix) + irc.error(_('I cowardly refuse to ban myself.')) return if not reason: reason = msg.nick