diff --git a/src/irclib.py b/src/irclib.py index 551c08d02..88557e4fb 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -292,7 +292,7 @@ class IrcState(IrcCommandDispatcher): chan.topic = msg.args[1] def do332(self, irc, msg): - chan = self.channels[msg.args[0]] + chan = self.channels[msg.args[1]] chan.topic = msg.args[2] def doNick(self, irc, msg):