From d5d080180749f0c38494939bc4c9ef9b57068763 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Tue, 20 Jan 2015 17:11:56 +0000 Subject: [PATCH] Fix another issue with IPv6 users - commands being ignored --- tipbot/modules/irc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tipbot/modules/irc.py b/tipbot/modules/irc.py index e55ec92..14a07fd 100644 --- a/tipbot/modules/irc.py +++ b/tipbot/modules/irc.py @@ -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]