]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Check that the <connect> block actually specifies a host before checking whether...
[user/henk/code/inspircd.git] / src / inspircd.cpp
index ca89e0ef318e31ee16a1f3ec5857f2d4562b730e..6ff5bfb301921317f9d0649334eec522ac3a7ca9 100644 (file)
@@ -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);