Adjust order of operations

This commit is contained in:
Akkadius 2019-12-24 23:57:36 -06:00
parent 80d8736276
commit 995fb6914e
2 changed files with 6 additions and 5 deletions

View File

@ -182,12 +182,13 @@ namespace EQEmuCommand {
}
std::cout << std::endl;
}
else if (!ran_command) {
std::cerr << "Unknown command [" << argv[1] << "] ! Try --help" << std::endl;
std::exit(1);
}
exit(1);
if (ran_command) {
std::exit(1);
}
}
}

View File

@ -201,7 +201,7 @@ namespace DatabaseSchema {
static std::vector<std::string> GetServerTables()
{
std::vector<std::string> tables = {
"Banned_IPs",
"banned_ips",
"bugs",
"bug_reports",
"command_settings",