aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2016-03-09 03:12:22 +0100
committerest31 <MTest31@outlook.com>2016-03-15 05:55:49 +0100
commite0151d1054c9923630b8ae9cdae36efa261756d3 (patch)
treec2045c38503457f34a95398630de772f4d709d7e /src/script
parentbb2ee54d3b841ebdb6c6a0b6573b64216ae0baae (diff)
downloadminetest-e0151d1054c9923630b8ae9cdae36efa261756d3.tar.gz
minetest-e0151d1054c9923630b8ae9cdae36efa261756d3.tar.bz2
minetest-e0151d1054c9923630b8ae9cdae36efa261756d3.zip
Much better API for auth.{cpp, h}
* No function overloading * Adhere coding style and with method names following lowercase_underscore_style * Use std::string in external API, handling these is much more fun
Diffstat (limited to 'src/script')
-rw-r--r--src/script/lua_api/l_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_util.cpp b/src/script/lua_api/l_util.cpp
index f990dacf9..c3e6c8964 100644
--- a/src/script/lua_api/l_util.cpp
+++ b/src/script/lua_api/l_util.cpp
@@ -251,7 +251,7 @@ int ModApiUtil::l_get_password_hash(lua_State *L)
NO_MAP_LOCK_REQUIRED;
std::string name = luaL_checkstring(L, 1);
std::string raw_password = luaL_checkstring(L, 2);
- std::string hash = translatePassword(name, raw_password);
+ std::string hash = translate_password(name, raw_password);
lua_pushstring(L, hash.c_str());
return 1;
}