From 995fb6914ed4699e8b2f51a92ec32ba65865a782 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 24 Dec 2019 23:57:36 -0600 Subject: [PATCH] Adjust order of operations --- common/cli/eqemu_command_handler.cpp | 9 +++++---- common/database_schema.h | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/common/cli/eqemu_command_handler.cpp b/common/cli/eqemu_command_handler.cpp index 09c805d8f..bbcdb4612 100644 --- a/common/cli/eqemu_command_handler.cpp +++ b/common/cli/eqemu_command_handler.cpp @@ -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); + } } } diff --git a/common/database_schema.h b/common/database_schema.h index ffbca98a8..6033e85b5 100644 --- a/common/database_schema.h +++ b/common/database_schema.h @@ -201,7 +201,7 @@ namespace DatabaseSchema { static std::vector GetServerTables() { std::vector tables = { - "Banned_IPs", + "banned_ips", "bugs", "bug_reports", "command_settings",