mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-30 23:47:16 +00:00
Sort command_init alphabetically and cleanup
This commit is contained in:
+2
-2
@@ -405,7 +405,7 @@ void Console::ProcessCommand(const char* command) {
|
|||||||
state = CONSOLE_STATE_CLOSED;
|
state = CONSOLE_STATE_CLOSED;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
paccountid = database.CheckLogin(paccountname,command);
|
paccountid = database.CheckLogin(paccountname ,command);
|
||||||
if (paccountid == 0) {
|
if (paccountid == 0) {
|
||||||
SendMessage(1, 0);
|
SendMessage(1, 0);
|
||||||
SendMessage(2, "Login failed.");
|
SendMessage(2, "Login failed.");
|
||||||
@@ -431,7 +431,7 @@ void Console::ProcessCommand(const char* command) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CONSOLE_STATE_CONNECTED: {
|
case CONSOLE_STATE_CONNECTED: {
|
||||||
Log.Out(Logs::Detail, Logs::World_Server,"TCP command: %s: \"%s\"",paccountname,command);
|
Log.Out(Logs::Detail, Logs::World_Server,"TCP command: %s: \"%s\"",paccountname ,command);
|
||||||
Seperator sep(command);
|
Seperator sep(command);
|
||||||
if (strcasecmp(sep.arg[0], "help") == 0 || strcmp(sep.arg[0], "?") == 0) {
|
if (strcasecmp(sep.arg[0], "help") == 0 || strcmp(sep.arg[0], "?") == 0) {
|
||||||
SendMessage(1, " whoami");
|
SendMessage(1, " whoami");
|
||||||
|
|||||||
+974
-973
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user