diff --git a/src/Client/DefScriptInterface.cpp b/src/Client/DefScriptInterface.cpp index c7a8d25..5709a3f 100644 --- a/src/Client/DefScriptInterface.cpp +++ b/src/Client/DefScriptInterface.cpp @@ -724,7 +724,8 @@ void DefScriptPackage::My_LoadUserPermissions(VarSet &vs) void DefScriptPackage::My_Run(std::string line, std::string username) { - uint8 scperm=0,usrperm=0; + uint8 scperm=255; // builtin functions that have no explicit req. permission level assigned should be secure from beeing called + uint8 usrperm=0; // users/players that have no explicit permission assigned should have minimal permission for (std::map::iterator i = my_usrPermissionMap.begin(); i != my_usrPermissionMap.end(); i++) { diff --git a/src/Client/World/CacheHandler.cpp b/src/Client/World/CacheHandler.cpp index 89c590f..afe1cc1 100644 --- a/src/Client/World/CacheHandler.cpp +++ b/src/Client/World/CacheHandler.cpp @@ -95,8 +95,8 @@ bool PlayerNameCache::ReadFromFile(void){ fh.read((char*)&(cacheItem->_guid),sizeof(uint64)); fh.read((char*)&len,sizeof(uint8)); if(len>12 || len<2){ - logerror("\nPlayerNameCache data seem corrupt [namelength=%d, should be <=12]",len); - log("-> Clearing cache, creating new.\n"); + logerror("PlayerNameCache data seem corrupt [namelength=%d, should be <=12]",len); + log("-> Clearing cache, creating new."); _cache.clear(); success=false; break;