summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index ca89e0ef3..6ff5bfb30 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -464,7 +464,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
/* Unknown parameter */
default:
/* Fall through to handle other weird values too */
- printf("Unknown parameter '%s'\n", argv[index]);
+ printf("Unknown parameter '%s'\n", argv[optind-1]);
printf("Usage: %s [--nofork] [--nolog] [--debug] [--logfile <filename>]\n\
[--runasroot] [--version] [--config <config>] [--testsuite]\n", argv[0]);
Exit(EXIT_STATUS_ARGV);