mirror of https://github.com/Mikaela/Limnoria.git
Fixed some thingy.
This commit is contained in:
parent
8a979b3ada
commit
ee5afd1074
|
@ -337,7 +337,11 @@ class ChannelPluginTestCase(PluginTestCase):
|
||||||
# Strip off nick: at beginning of response.
|
# Strip off nick: at beginning of response.
|
||||||
if args[1].startswith(self.nick) or \
|
if args[1].startswith(self.nick) or \
|
||||||
args[1].startswith(ircutils.nickFromHostmask(self.prefix)):
|
args[1].startswith(ircutils.nickFromHostmask(self.prefix)):
|
||||||
|
try:
|
||||||
args[1] = args[1].split(' ', 1)[1]
|
args[1] = args[1].split(' ', 1)[1]
|
||||||
|
except IndexError:
|
||||||
|
# Odd. We'll skip this.
|
||||||
|
pass
|
||||||
ret = ircmsgs.privmsg(*args)
|
ret = ircmsgs.privmsg(*args)
|
||||||
else:
|
else:
|
||||||
ret = response
|
ret = response
|
||||||
|
|
Loading…
Reference in New Issue