mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Refuse to kick self.
This commit is contained in:
parent
0abd472dd1
commit
179fc87866
@ -271,9 +271,8 @@ class Channel(callbacks.Privmsg):
|
|||||||
<channel> is only necessary if the message isn't sent in the channel
|
<channel> is only necessary if the message isn't sent in the channel
|
||||||
itself.
|
itself.
|
||||||
"""
|
"""
|
||||||
if nick not in irc.state.channels[channel].users:
|
if ircutils.strEqual(nick, irc.nick):
|
||||||
irc.error('%s isn\'t in %s.' % (nick, channel))
|
irc.error('I cowardly refuse to kick myself.', Raise=True)
|
||||||
return
|
|
||||||
if not reason:
|
if not reason:
|
||||||
reason = msg.nick
|
reason = msg.nick
|
||||||
kicklen = irc.state.supported.get('kicklen', sys.maxint)
|
kicklen = irc.state.supported.get('kicklen', sys.maxint)
|
||||||
|
Loading…
Reference in New Issue
Block a user