Changes to prevent_sethome #4483

Closed
opened 2023-05-13 14:35:02 +00:00 by AliasAlreadyTaken · 5 comments
  1. Even though it becomes a mouthful, we should use the "area" prefix: Let's make it /area_prevent_sethome or, if that seems too much to type maybe /area_no_sethome?

  2. Please let the command notify the user about success. It does notify on failure already.

1. Even though it becomes a mouthful, we should use the "area" prefix: Let's make it `/area_prevent_sethome` or, if that seems too much to type maybe `/area_no_sethome`? 2. Please let the command notify the user about success. It does notify on failure already.
AliasAlreadyTaken added the
1. kind/bug
1. kind/enhancement
labels 2023-05-13 14:35:13 +00:00
AliasAlreadyTaken added this to the 1.1.119 milestone 2023-05-13 14:35:16 +00:00
Member
https://gitea.your-land.de/your-land/yl_areas_addon/commit/02a4d7be612d486a8f06b77908c170d195b603a0
flux added the
4. step/ready to QA test
label 2023-05-13 17:12:01 +00:00
Author
Owner

Using /area_prevent_sethome I get this crash:

2023-05-14 17:31:45: ACTION[Main]: Server: Shutting down
2023-05-14 17:31:47: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback on_chat_message(): ...n/../mods/yl_areas_addon/chatcommand_prevent_sethome.lua:22: bad argument #2 to 'f' (value expected)
2023-05-14 17:31:47: ERROR[Main]: stack traceback:
2023-05-14 17:31:47: ERROR[Main]: 	[C]: in function 'f'
2023-05-14 17:31:47: ERROR[Main]: 	...n/../mods/yl_areas_addon/chatcommand_prevent_sethome.lua:22: in function 'func'
2023-05-14 17:31:47: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:107: in function 'func'
2023-05-14 17:31:47: ERROR[Main]: 	/home/mt/5.6.1/Minetest_test/bin/../builtin/game/chat.lua:79: in function </home/mt/5.6.1/Minetest_test/bin/../builtin/game/chat.lua:52>
2023-05-14 17:31:47: ERROR[Main]: 	.../mt/5.6.1/Minetest_test/bin/../builtin/game/register.lua:432: in function <.../mt/5.6.1/Minetest_test/bin/../builtin/game/register.lua:418>
Using `/area_prevent_sethome` I get this crash: ``` 2023-05-14 17:31:45: ACTION[Main]: Server: Shutting down 2023-05-14 17:31:47: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback on_chat_message(): ...n/../mods/yl_areas_addon/chatcommand_prevent_sethome.lua:22: bad argument #2 to 'f' (value expected) 2023-05-14 17:31:47: ERROR[Main]: stack traceback: 2023-05-14 17:31:47: ERROR[Main]: [C]: in function 'f' 2023-05-14 17:31:47: ERROR[Main]: ...n/../mods/yl_areas_addon/chatcommand_prevent_sethome.lua:22: in function 'func' 2023-05-14 17:31:47: ERROR[Main]: ...inetest_test/bin/../builtin/profiler/instrumentation.lua:107: in function 'func' 2023-05-14 17:31:47: ERROR[Main]: /home/mt/5.6.1/Minetest_test/bin/../builtin/game/chat.lua:79: in function </home/mt/5.6.1/Minetest_test/bin/../builtin/game/chat.lua:52> 2023-05-14 17:31:47: ERROR[Main]: .../mt/5.6.1/Minetest_test/bin/../builtin/game/register.lua:432: in function <.../mt/5.6.1/Minetest_test/bin/../builtin/game/register.lua:418> ```
AliasAlreadyTaken removed the
4. step/ready to QA test
label 2023-05-14 17:32:32 +00:00
AliasAlreadyTaken added the
4. step/ready to QA test
ugh/QA NOK
labels 2023-05-14 17:33:41 +00:00
Member

Using /area_prevent_sethome I get this crash:

fixed this and actually tested it this time: c913c1df32

> Using `/area_prevent_sethome` I get this crash: fixed this and actually tested it this time: https://gitea.your-land.de/your-land/yl_areas_addon/commit/c913c1df32a19dcb06a57648be0226f97b7cea82
Author
Owner

QA

  1. Command is now named /area_prevent_sethome 👍

  2. Command notifies on failure 👍

  3. No more crashy 👍

QA 1. Command is now named `/area_prevent_sethome` 👍 2. Command notifies on failure 👍 3. No more crashy 👍
AliasAlreadyTaken added
ugh/QA OK
and removed
ugh/QA NOK
labels 2023-05-15 21:30:39 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2023-05-18 23:36:25 +00:00
Member

this is live

this is live
flux closed this issue 2023-05-18 23:36:30 +00:00
Sign in to join this conversation.
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/bugtracker#4483
No description provided.