Skip to content

Commit

Permalink
Fix parsing bug that prevents spaces in messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Jun 29, 2019
1 parent b1556e9 commit e3f877a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitchio/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def parser(data: str, nick: str):
elif groups[2] == 'PRIVMSG' or groups[2] == 'PRIVMSG(ECHO)':
action = groups[2]
channel = groups[3].lstrip('#')
message = ''.join(groups[4:]).lstrip(':')
message = ' '.join(groups[4:]).lstrip(':')
user = re.search(USER_SUB, groups[1]).group('user')

elif action in ACTIONS:
Expand Down

0 comments on commit e3f877a

Please sign in to comment.