mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Avoid splitting PRIVMSG payload on :
This commit is contained in:
parent
e1cd8042c1
commit
d7f3ee7f3f
1 changed files with 2 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue