From 5f5e79135f61acc623086aed2d307236f12df3a5 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 25 Aug 2004 23:14:00 +0000 Subject: [PATCH] For some reason, when I searched for do353 earlier, it didn't come up. Now it turns out that it should've...who knows. --- src/irclib.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/irclib.py b/src/irclib.py index c57224e50..8c042632d 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -362,14 +362,13 @@ class IrcState(IrcCommandDispatcher): def do353(self, irc, msg): # NAMES reply. - channel = msg.args[2] - names = msg.args[-1].split() + (_, type, channel, names) = msg.args if channel not in self.channels: self.channels[channel] = Channel() c = self.channels[channel] for name in names: c.addUser(name) - if msg.args[1] == '@': + if type == '@': c.modes['s'] = None def doJoin(self, irc, msg): @@ -420,13 +419,6 @@ class IrcState(IrcCommandDispatcher): elif mode[0] == '-' and mode[1] not in 'ovh': chan.unsetMode(modeChar) - def do353(self, irc, msg): - (_, _, channel, users) = msg.args - chan = self.channels[channel] - users = users.split() - for user in users: - chan.addUser(user) - def doPart(self, irc, msg): for channel in msg.args[0].split(','): chan = self.channels[channel]