summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-01-18 07:07:50 +0000
committerSadie Powell <sadie@witchery.services>2021-01-18 07:12:23 +0000
commitf9a663185402b9689c784dc87c317ac204c53f03 (patch)
tree691ba814f47bb6e700cf766aa556241f8cbd059c /src/inspircd.cpp
parenta59ed4b39443eb788c15c65501898ca374387e2e (diff)
Fix showing the start header when using --version.
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index df5dc8647..ba7e08eff 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -332,7 +332,7 @@ namespace
if (do_version)
{
- std::cout << std::endl << INSPIRCD_VERSION << std::endl;
+ std::cout << INSPIRCD_VERSION << std::endl;
ServerInstance->Exit(EXIT_STATUS_NOERROR);
}
@@ -490,6 +490,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
this->Config->cmdline.argv = argv;
this->Config->cmdline.argc = argc;
+ ParseOptions();
#ifdef _WIN32
// Initialize the console values
@@ -521,7 +522,6 @@ InspIRCd::InspIRCd(int argc, char** argv)
<< "See " << con_green << "/INFO" << con_reset << " for contributors & authors" << std::endl
<< std::endl;
- ParseOptions();
if (Config->cmdline.forcedebug)
{
FileWriter* fw = new FileWriter(stdout, 1);