From 6d7b6a7d319812c310e77d05346d226e04c147b0 Mon Sep 17 00:00:00 2001 From: resistivecorpse Date: Wed, 26 Sep 2012 12:27:33 -0400 Subject: [PATCH] chaged msg.arg[0] to channel in if statements for joins and parts --- plugins/ChannelLogger/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ChannelLogger/plugin.py b/plugins/ChannelLogger/plugin.py index b431c99a1..fc1777cb2 100644 --- a/plugins/ChannelLogger/plugin.py +++ b/plugins/ChannelLogger/plugin.py @@ -207,7 +207,7 @@ class ChannelLogger(callbacks.Plugin): '*** %s is now known as %s\n', oldNick, newNick) def doJoin(self, irc, msg): for channel in msg.args[0].split(','): - if(self.registryValue('showJoinParts', msg.args[0])): + if(self.registryValue('showJoinParts', channel)): self.doLog(irc, channel, '*** %s <%s> has joined %s\n', msg.nick, msg.prefix, channel) @@ -232,7 +232,7 @@ class ChannelLogger(callbacks.Plugin): else: reason = "" for channel in msg.args[0].split(','): - if(self.registryValue('showJoinParts', msg.args[0])): + if(self.registryValue('showJoinParts', channel)): self.doLog(irc, channel, '*** %s <%s> has left %s%s\n', msg.nick, msg.prefix, channel, reason)