From 04f7ff313f5a61b99c394863871b177ec8979e31 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 9 Oct 2004 04:02:22 +0000 Subject: [PATCH] Commented out a bug (IrcState, actually in Irc), #1040008. --- src/irclib.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/irclib.py b/src/irclib.py index 084f04b6c..c00b9bd6a 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -290,11 +290,10 @@ class ChannelState(object): for (mode, value) in ircutils.separateModes(msg.args[1:]): (action, modeChar) = mode if modeChar in 'ovhbeq': # We don't handle e or q yet. + set = getSet(modeChar) if action == '-': - set = getSet(modeChar) set.discard(value) elif action == '+': - set = getSet(modeChar) set.add(value) else: if action == '+': @@ -729,7 +728,10 @@ class Irc(IrcCommandDispatcher): # matter. That's why we gotta go munging in private attributes msg._str = msg._str[:500] + '\r\n' msg._len = len(str(msg)) - self.state.addMsg(self, msg) + # I don't think we should do this. Why should it matter? If it's + # something important, then the server will send it back to us, + # and if it's just a privmsg/notice/etc., we don't care. + # self.state.addMsg(self, msg) log.debug('Outgoing message: ' + str(msg).rstrip('\r\n')) if msg.command == 'JOIN': channels = msg.args[0].split(',')