From 60dc66927dcc8873158c2e2ed185488cab835e2e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 11 Sep 2003 10:27:49 +0000 Subject: [PATCH] Added special handling in the case where the bot is kicked from the channel. --- plugins/Enforcer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/Enforcer.py b/plugins/Enforcer.py index d308f8fe5..478866695 100644 --- a/plugins/Enforcer.py +++ b/plugins/Enforcer.py @@ -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]))