Fix another issue with IPv6 users - commands being ignored

This commit is contained in:
moneromooo 2015-01-20 17:11:56 +00:00
parent 92bf49a4c4
commit d5d0801807
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ class IRCNetwork(Network):
elif action == 'PRIVMSG':
self.update_last_active_time(chan,GetNick(who))
# resplit to avoid splitting text that contains ':'
text = data.split(':',2)[2]
text = data.split(' :',1)[1]
exidx = text.find('!')
if exidx != -1 and len(text)>exidx+1 and text[exidx+1] in string.ascii_letters and self.is_acceptable_command_prefix(text[:exidx]):
cmd = text.split('!')[1]