From ee5afd10741c06dc6b8877fa68c1356420c90e4a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 9 Apr 2004 15:13:44 +0000 Subject: [PATCH] Fixed some thingy. --- test/testsupport.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/testsupport.py b/test/testsupport.py index 32e83521c..dd53d68f1 100644 --- a/test/testsupport.py +++ b/test/testsupport.py @@ -337,7 +337,11 @@ class ChannelPluginTestCase(PluginTestCase): # Strip off nick: at beginning of response. if args[1].startswith(self.nick) or \ args[1].startswith(ircutils.nickFromHostmask(self.prefix)): - args[1] = args[1].split(' ', 1)[1] + try: + args[1] = args[1].split(' ', 1)[1] + except IndexError: + # Odd. We'll skip this. + pass ret = ircmsgs.privmsg(*args) else: ret = response