Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent mod from crashing when privs are granted to players #18

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

wsor4035
Copy link
Contributor

fixes the following bug

2024-08-30 19:27:25: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback on_chat_message(): ...games/farlands_reloaded/mods/fl_others/i3/src/common.lua:617: attempt to compare number with nil
2024-08-30 19:27:25: ERROR[Main]: stack traceback:
2024-08-30 19:27:25: ERROR[Main]:       ...games/farlands_reloaded/mods/fl_others/i3/src/common.lua:617: in function 'reset_data'
2024-08-30 19:27:25: ERROR[Main]:       ...es/farlands_reloaded/mods/fl_others/i3/src/callbacks.lua:49: in function 'func'
2024-08-30 19:27:25: ERROR[Main]:       /home/creativeworks/mt59/bin/../builtin/game/register.lua:432: in function 'run_priv_callbacks'
2024-08-30 19:27:25: ERROR[Main]:       /home/creativeworks/mt59/bin/../builtin/game/auth.lua:106: in function 'set_player_privs'
2024-08-30 19:27:25: ERROR[Main]:       /home/creativeworks/mt59/bin/../builtin/game/chat.lua:263: in function 'func'
2024-08-30 19:27:25: ERROR[Main]:       /home/creativeworks/mt59/bin/../builtin/game/chat.lua:79: in function </home/creativeworks/mt59/bin/../builtin/game/chat.lua:52>
2024-08-30 19:27:25: ERROR[Main]:       /home/creativeworks/mt59/bin/../builtin/common/register.lua:26: in function </home/creativeworks/mt59/bin/../builtin/common/register.lua:12>

taken from farlands reloaded test server logs

@wsor4035 wsor4035 merged commit 973ee2c into main Aug 31, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant