From 8eaec18a5e43fbe91386b79846ac13fd64bf38bb Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 7 Dec 2004 01:16:06 +0000 Subject: [PATCH] Fix for broken test_Topic. --- src/irclib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/irclib.py b/src/irclib.py index c77524bea..4bed84415 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -708,7 +708,9 @@ class Irc(IrcCommandDispatcher): # 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) + # On second thought, we need this for testing. + if world.testing: + self.state.addMsg(self, msg) log.debug('Outgoing message: ' + str(msg).rstrip('\r\n')) if msg.command == 'JOIN': channels = msg.args[0].split(',')