From d0f50fb388c91ecc49eac51b4d07d51409e19a29 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 21 May 2013 17:19:21 +0200 Subject: [PATCH] Channel: Log when the bot is kicked. --- plugins/Channel/plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Channel/plugin.py b/plugins/Channel/plugin.py index 0c411ede7..7d0111db3 100644 --- a/plugins/Channel/plugin.py +++ b/plugins/Channel/plugin.py @@ -51,8 +51,11 @@ class Channel(callbacks.Plugin): channel = msg.args[0] if msg.args[1] == irc.nick: if self.registryValue('alwaysRejoin', channel): + self.log.info('Kicked from %s. Rejoining.' % channel) networkGroup = conf.supybot.networks.get(irc.network) irc.sendMsg(networkGroup.channels.join(channel)) + else: + self.log.info('Kicked from %s. Not auto-rejoining.' % channel) def _sendMsg(self, irc, msg): irc.queueMsg(msg)