Fixed bug where ChannelPluginTestCase would try to chop off the first word of an ACTION.

This commit is contained in:
Jeremy Fincher 2003-09-18 07:19:47 +00:00
parent 40de833c24
commit 0a2539c199

View File

@ -226,7 +226,8 @@ class ChannelPluginTestCase(PluginTestCase):
if response is not None: if response is not None:
args = list(response.args) args = list(response.args)
# Strip off nick: at beginning of response. # Strip off nick: at beginning of response.
args[1] = args[1].split(None, 1)[1] if not ircmsgs.isAction(response):
args[1] = args[1].split(None, 1)[1]
return ircmsgs.privmsg(*args) return ircmsgs.privmsg(*args)
else: else:
return None return None