mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 11:12:25 +00:00
Remove some processor and cleanup logging around Commands
This commit is contained in:
parent
b2dbc3923c
commit
734a2c42b2
@ -442,17 +442,14 @@ int command_init(void) {
|
|||||||
std::map<std::string,uint8>::iterator itr;
|
std::map<std::string,uint8>::iterator itr;
|
||||||
database.GetCommandSettings(command_settings);
|
database.GetCommandSettings(command_settings);
|
||||||
for(; cur != end; ++cur) {
|
for(; cur != end; ++cur) {
|
||||||
if ((itr=command_settings.find(cur->first))!=command_settings.end())
|
if ((itr=command_settings.find(cur->first))!=command_settings.end()) {
|
||||||
{
|
|
||||||
cur->second->access = itr->second;
|
cur->second->access = itr->second;
|
||||||
Log.Out(Logs::General, Logs::Commands, "command_init(): - Command '%s' set to access level %d.", cur->first.c_str(), itr->second);
|
Log.Out(Logs::General, Logs::Commands, "command_init(): - Command '%s' set to access level %d.", cur->first.c_str(), itr->second);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef COMMANDS_WARNINGS
|
|
||||||
if(cur->second->access == 0)
|
if(cur->second->access == 0)
|
||||||
Log.Out(Logs::General, Logs::Status, "command_init(): Warning: Command '%s' defaulting to access level 0!" , cur->first.c_str());
|
Log.Out(Logs::General, Logs::Error, "command_init(): Warning: Command '%s' defaulting to access level 0!" , cur->first.c_str());
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user