mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Added special handling in the case where the bot is kicked from the channel.
This commit is contained in:
parent
bafc23f536
commit
60dc66927d
@ -140,6 +140,10 @@ class Enforcer(callbacks.Privmsg):
|
||||
not ircdb.checkCapability(msg.prefix, _chanCap(channel, 'op')):
|
||||
for nick in kicked:
|
||||
hostmask = irc.state.nickToHostmask(nick)
|
||||
if nick == irc.nick:
|
||||
# Must be a sendMsg so he joins the channel before MODEing.
|
||||
irc.sendMsg(ircmsgs.join(channel))
|
||||
deop = True
|
||||
if self._isProtected(channel, hostmask):
|
||||
deop = True
|
||||
irc.queueMsg(ircmsgs.invite(channel, msg.args[1]))
|
||||
|
Loading…
Reference in New Issue
Block a user