diff options
| author | 2020-11-03 20:11:26 +0000 | |
|---|---|---|
| committer | 2020-11-03 20:11:26 +0000 | |
| commit | 2a9f1c7fa01c30148f4c429623728fa7a75d3261 (patch) | |
| tree | 5db10634aab67f134cc9389678e091bde76ed8c5 /src/inspircd.cpp | |
| parent | Rename ConfigTag::tag to ConfigTag::name. (diff) | |
| parent | Fix an off by one error in the "unknown option" message. (diff) | |
Merge branch 'insp3' into master.
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 2f4db6d4d..a33ec4bc3 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); |
