mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-29 22:29:24 +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)
|
||||
raise callbacks.ArgumentError
|
||||
elif bannedNick == irc.nick:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user