diff options
| author | 2020-11-03 15:58:59 +0000 | |
|---|---|---|
| committer | 2020-11-03 15:58:59 +0000 | |
| commit | d76f856fc9d97af68c9cbad0aca9d5505506b4d9 (patch) | |
| tree | 76137980542cd487f2e6a3bc54af593bd1507dc4 /src/inspircd.cpp | |
| parent | Improve the names of the IRCCloud example connect classes. (diff) | |
Fix an off by one error in the "unknown option" message.
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 2 |
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); |
