issork / gift

Godot IRC For Twitch addon
MIT License
150 stars 23 forks source link

Chat_message Signal only returns the first word? #6

Closed KekLuck closed 3 years ago

KekLuck commented 3 years ago

I might be dumb but is that on purpose or did I do something wrong?

I connected the chat_message signal, I have the message as a "String" argument and when I print it its only the first word.

danreeves commented 3 years ago

I'm also seeing this. Did you resolve the issue @R3m3mb3rM3

danreeves commented 3 years ago

I tracked it down to this line: https://github.com/MennoMax/gift/blob/master/addons/gift/gift_node.gd#L188

-var msg : PoolStringArray = message.split(" ", true, 4)
+var msg : PoolStringArray = message.split(" ", true, 3)
issork commented 3 years ago

Edit: Nevermind, definitely my fault. Committing the fix.

danreeves commented 3 years ago

Thanks!