From efcf9d7837d2d1adaf65d0c7368b387fa45ce5b1 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 21 May 2013 18:30:16 +0200 Subject: [PATCH] Channel: Add hostmask of the user kicking the bot, in the logs. --- plugins/Channel/plugin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/Channel/plugin.py b/plugins/Channel/plugin.py index 7d0111db3..fd591ad28 100644 --- a/plugins/Channel/plugin.py +++ b/plugins/Channel/plugin.py @@ -51,11 +51,13 @@ 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) + self.log.info('Kicked from %s by %s. Rejoining.' % + (channel, msg.prefix)) networkGroup = conf.supybot.networks.get(irc.network) irc.sendMsg(networkGroup.channels.join(channel)) else: - self.log.info('Kicked from %s. Not auto-rejoining.' % channel) + self.log.info('Kicked from %s by %s. Not auto-rejoining.' % + (channel, msg.prefix)) def _sendMsg(self, irc, msg): irc.queueMsg(msg)