projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aad3be
)
Fix crash on can_bypass_userlimit returning non-boolean
author
rubenwardy
<rw@rubenwardy.com>
Wed, 3 Jan 2018 14:18:13 +0000
(14:18 +0000)
committer
rubenwardy
<rw@rubenwardy.com>
Wed, 3 Jan 2018 14:18:13 +0000
(14:18 +0000)
src/script/cpp_api/s_player.cpp
patch
|
blob
|
history
diff --git
a/src/script/cpp_api/s_player.cpp
b/src/script/cpp_api/s_player.cpp
index 578c26184dc6882c2d75b4b99a19837239b0bc50..f3c316650250294baf2db936512266668b21affa 100644
(file)
--- a/
src/script/cpp_api/s_player.cpp
+++ b/
src/script/cpp_api/s_player.cpp
@@
-134,7
+134,6
@@
bool ScriptApiPlayer::can_bypass_userlimit(const std::string &name, const std::s
lua_pushstring(L, name.c_str());
lua_pushstring(L, ip.c_str());
runCallbacks(2, RUN_CALLBACKS_MODE_OR);
- FATAL_ERROR_IF(!lua_isboolean(L, -1), "on_user_limitcheck must return a boolean");
return lua_toboolean(L, -1);
}