summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-11-03 15:58:59 +0000
committerSadie Powell <sadie@witchery.services>2020-11-03 15:58:59 +0000
commitd76f856fc9d97af68c9cbad0aca9d5505506b4d9 (patch)
tree76137980542cd487f2e6a3bc54af593bd1507dc4
parent09a5b50c061d27db99d87363338198ded62ac196 (diff)
Fix an off by one error in the "unknown option" message.
-rw-r--r--src/inspircd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 067b2a2f3..5760e631b 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -322,7 +322,7 @@ namespace
default:
// An unknown option was specified.
- std::cout << con_red << "Error:" << con_reset << " unknown option '" << argv[optind - 1] << "'." << std::endl
+ std::cout << con_red << "Error:" << con_reset << " unknown option '" << argv[optind] << "'." << std::endl
<< con_bright << "Usage: " << con_reset << argv[0] << " [--config <file>] [--debug] [--nofork] [--nolog]" << std::endl
<< std::string(strlen(argv[0]) + 8, ' ') << "[--nopid] [--runasroot] [--version]" << std::endl;
ServerInstance->Exit(EXIT_STATUS_ARGV);