Chat_message Signal only returns the first word? #6

Closed
opened 2021-04-23 14:08:35 +02:00 by KekLuck · 4 comments
KekLuck commented 2021-04-23 14:08:35 +02:00 (Migrated from github.com)

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.

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 2021-05-03 19:24:36 +02:00 (Migrated from github.com)

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

I'm also seeing this. Did you resolve the issue @R3m3mb3rM3
danreeves commented 2021-05-03 19:32:08 +02:00 (Migrated from github.com)

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)
I tracked it down to this line: https://github.com/MennoMax/gift/blob/master/addons/gift/gift_node.gd#L188 ```diff -var msg : PoolStringArray = message.split(" ", true, 4) +var msg : PoolStringArray = message.split(" ", true, 3) ```
issork commented 2021-05-03 19:38:50 +02:00 (Migrated from github.com)

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

Edit: Nevermind, definitely my fault. Committing the fix.
danreeves commented 2021-05-03 19:56:58 +02:00 (Migrated from github.com)

Thanks!

Thanks!
Sign in to join this conversation.
No description provided.