mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 22:51:30 +00:00
Sort command_init alphabetically and cleanup
This commit is contained in:
parent
734a2c42b2
commit
d7a2387f3d
@ -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");
|
||||||
|
|||||||
1845
zone/command.cpp
1845
zone/command.cpp
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user