mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-29 18:11:28 +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;
|
||||
database.GetCommandSettings(command_settings);
|
||||
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;
|
||||
Log.Out(Logs::General, Logs::Commands, "command_init(): - Command '%s' set to access level %d.", cur->first.c_str(), itr->second);
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef COMMANDS_WARNINGS
|
||||
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());
|
||||
#endif
|
||||
Log.Out(Logs::General, Logs::Error, "command_init(): Warning: Command '%s' defaulting to access level 0!" , cur->first.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user