mirror of
https://github.com/wownero/tippero.git
synced 2026-10-26 02:58:47 +01:00
Avoid splitting PRIVMSG payload on :
This commit is contained in:
@@ -388,6 +388,8 @@ def IRCLoop(on_idle,on_identified,on_command):
|
||||
|
||||
elif action == 'PRIVMSG':
|
||||
UpdateLastActiveTime(chan,GetNick(who))
|
||||
# resplit to avoid splitting text that contains ':'
|
||||
text = data.split(':',2)[2]
|
||||
exidx = text.find('!')
|
||||
if exidx != -1 and len(text)>exidx+1 and text[exidx+1] in string.ascii_letters:
|
||||
cmd = text.split('!')[1]
|
||||
|
||||
Reference in New Issue
Block a user