Added special handling in the case where the bot is kicked from the channel.

This commit is contained in:
Jeremy Fincher 2003-09-11 10:27:49 +00:00
parent bafc23f536
commit 60dc66927d
1 changed files with 4 additions and 0 deletions

View File

@ -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]))