mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 23:58:25 +00:00
Replace LogFile->write(EQEmuLog::Error, with logger.logevents(EQEmuLogSys::Error
This commit is contained in:
+2
-2
@@ -496,7 +496,7 @@ int command_add(const char *command_string, const char *desc, int access, CmdFun
|
||||
std::string cstr(command_string);
|
||||
|
||||
if(commandlist.count(cstr) != 0) {
|
||||
LogFile->write(EQEmuLog::Error, "command_add() - Command '%s' is a duplicate - check command.cpp." , command_string);
|
||||
logger.Log(EQEmuLogSys::Error,"command_add() - Command '%s' is a duplicate - check command.cpp." , command_string);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -575,7 +575,7 @@ int command_realdispatch(Client *c, const char *message)
|
||||
#endif
|
||||
|
||||
if(cur->function == nullptr) {
|
||||
LogFile->write(EQEmuLog::Error, "Command '%s' has a null function\n", cstr.c_str());
|
||||
logger.Log(EQEmuLogSys::Error,"Command '%s' has a null function\n", cstr.c_str());
|
||||
return(-1);
|
||||
} else {
|
||||
//dispatch C++ command
|
||||
|
||||
Reference in New Issue
Block a user