mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-02 07:59:32 +01:00
add conditional to respond acc to kick being true or not (#1512)
Co-authored-by: Pratyush Desai <pratyush.desai@liberta.casa>
This commit is contained in:
parent
964acac058
commit
5d8f59bf80
@ -381,8 +381,12 @@ class Channel(callbacks.Plugin):
|
|||||||
msg.prefix, bannedNick)
|
msg.prefix, bannedNick)
|
||||||
raise callbacks.ArgumentError
|
raise callbacks.ArgumentError
|
||||||
elif bannedNick == irc.nick:
|
elif bannedNick == irc.nick:
|
||||||
|
if kick:
|
||||||
self.log.warning('%q tried to make me kban myself.', msg.prefix)
|
self.log.warning('%q tried to make me kban myself.', msg.prefix)
|
||||||
irc.error(_('I cowardly refuse to kickban myself.'))
|
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
|
return
|
||||||
if not reason:
|
if not reason:
|
||||||
reason = msg.nick
|
reason = msg.nick
|
||||||
|
Loading…
Reference in New Issue
Block a user