mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +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')):
|
not ircdb.checkCapability(msg.prefix, _chanCap(channel, 'op')):
|
||||||
for nick in kicked:
|
for nick in kicked:
|
||||||
hostmask = irc.state.nickToHostmask(nick)
|
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):
|
if self._isProtected(channel, hostmask):
|
||||||
deop = True
|
deop = True
|
||||||
irc.queueMsg(ircmsgs.invite(channel, msg.args[1]))
|
irc.queueMsg(ircmsgs.invite(channel, msg.args[1]))
|
||||||
|
Loading…
Reference in New Issue
Block a user