]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix showing the start header when using --version.
authorSadie Powell <sadie@witchery.services>
Mon, 18 Jan 2021 07:07:50 +0000 (07:07 +0000)
committerSadie Powell <sadie@witchery.services>
Mon, 18 Jan 2021 07:12:23 +0000 (07:12 +0000)
src/inspircd.cpp

index df5dc8647f5b7fd5d0f6e67fdfae8183ca5b9266..ba7e08eff39187f25b96362d9f3da598b4c7a6e7 100644 (file)
@@ -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);