From 734a2c42b2e40c04174f7e3e45b6b4ffa8150d95 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Sat, 24 Jan 2015 04:17:58 -0600 Subject: [PATCH] Remove some processor and cleanup logging around Commands --- zone/command.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/zone/command.cpp b/zone/command.cpp index 8ada53a05..205d84daf 100644 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -442,17 +442,14 @@ int command_init(void) { std::map::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()); } }