chatcommand_say_all.lua:18: attempt to concatenate local 'message' (a table value) #4

Closed
opened 2024-05-28 13:43:45 +02:00 by AliasAlreadyTaken · 3 comments

Using say all crashes the server:

2024-05-28 11:41:35: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'yl_announcements' in callback on_chat_message(): ..._test/worldmods/yl_announcements/chatcommand_say_all.lua:18: attempt to concatenate local 'message' (a table value)
2024-05-28 11:41:35: ERROR[Main]: stack traceback:
2024-05-28 11:41:35: ERROR[Main]: 	..._test/worldmods/yl_announcements/chatcommand_say_all.lua:18: in function 'func'
2024-05-28 11:41:35: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function 'func'
2024-05-28 11:41:35: ERROR[Main]: 	/home/mt/5.8.0/Minetest_test/bin/../builtin/game/chat.lua:79: in function </home/mt/5.8.0/Minetest_test/bin/../builtin/game/chat.lua:52>
2024-05-28 11:41:35: ERROR[Main]: 	...t/5.8.0/Minetest_test/bin/../builtin/common/register.lua:26: in function <...t/5.8.0/Minetest_test/bin/../builtin/common/register.lua:12>

Using say all crashes the server: ``` 2024-05-28 11:41:35: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'yl_announcements' in callback on_chat_message(): ..._test/worldmods/yl_announcements/chatcommand_say_all.lua:18: attempt to concatenate local 'message' (a table value) 2024-05-28 11:41:35: ERROR[Main]: stack traceback: 2024-05-28 11:41:35: ERROR[Main]: ..._test/worldmods/yl_announcements/chatcommand_say_all.lua:18: in function 'func' 2024-05-28 11:41:35: ERROR[Main]: ...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function 'func' 2024-05-28 11:41:35: ERROR[Main]: /home/mt/5.8.0/Minetest_test/bin/../builtin/game/chat.lua:79: in function </home/mt/5.8.0/Minetest_test/bin/../builtin/game/chat.lua:52> 2024-05-28 11:41:35: ERROR[Main]: ...t/5.8.0/Minetest_test/bin/../builtin/common/register.lua:26: in function <...t/5.8.0/Minetest_test/bin/../builtin/common/register.lua:12> ```
Owner

I propose it has a name change in the cmd to /post as /announcement is difficult to type: #5

I propose the add cmd has an example in the help : #6

I propose it has a name change in the cmd to /post as /announcement is difficult to type: #5 I propose the add cmd has an example in the help : #6
Owner

I can't recreate the crash - it seems fine now.

I can't recreate the crash - it seems fine now.
Author
Owner

Using say all crashes the server IF there are no announcements to be displayed.

Using say all crashes the server IF there are no announcements to be displayed.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/yl_ticker#4
No description provided.