diff options
author | Kahrl <kahrl@gmx.net> | 2013-05-03 23:58:22 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-05-03 23:58:22 +0200 |
commit | 969d2b3eb1f30e257823d9220697e47735be68e3 (patch) | |
tree | f94b2176f4a145eef3c8bea452ea788ef2810ec0 /src/scriptapi.cpp | |
parent | a031a1548783f1dd4d6b357fef391647dfb35ce3 (diff) | |
download | minetest-969d2b3eb1f30e257823d9220697e47735be68e3.tar.gz minetest-969d2b3eb1f30e257823d9220697e47735be68e3.tar.bz2 minetest-969d2b3eb1f30e257823d9220697e47735be68e3.zip |
Optional dependencies and properly handle mod name conflicts again
Diffstat (limited to 'src/scriptapi.cpp')
-rw-r--r-- | src/scriptapi.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index f0fe1950e..26759a059 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -76,8 +76,7 @@ bool scriptapi_loadmod(lua_State *L, const std::string &scriptpath, { ModNameStorer modnamestorer(L, modname); - if(!string_allowed(modname, "abcdefghijklmnopqrstuvwxyz" - "0123456789_")){ + if(!string_allowed(modname, MODNAME_ALLOWED_CHARS)){ errorstream<<"Error loading mod \""<<modname <<"\": modname does not follow naming conventions: " <<"Only chararacters [a-z0-9_] are allowed."<<std::endl; |