From ef550c2dc03e28e2631dd76b4c92a4bf55ebc787 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 17 Feb 2004 01:51:54 +0000 Subject: [PATCH] Fixed bug lkn4it reported -- no doJoin. --- plugins/ChannelStats.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/ChannelStats.py b/plugins/ChannelStats.py index 2c11eae05..aca9fecd4 100644 --- a/plugins/ChannelStats.py +++ b/plugins/ChannelStats.py @@ -137,9 +137,16 @@ class ChannelStat(irclib.IrcCommandDispatcher): self.doPayload(*msg.args) self.parts += 1 + def doJoin(self, msg): + if len(msg.args) == 2: + self.doPayload(*msg.args) + self.joins += 1 + def doMode(self, msg): self.modes += 1 + # doQuit is handled by the plugin. + class UserStat(ChannelStat): def __init__(self, kicked=0, *args):