diff options
author | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-04-09 09:22:27 +0000 |
---|---|---|
committer | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-04-09 09:22:27 +0000 |
commit | 52149814e30b4471588f9dba9b2661b0283bd57f (patch) | |
tree | dae03e9c8a3085e669f40adae3575607047d1b6b /src | |
parent | a17a8a071640cce2fa2a9bf35333e11c4da726e0 (diff) |
Re-add the default case to commandline parsing (if it happens, it's better to know than to do nothing) and fix a small typo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11299 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index f53484b74..11ea679e7 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -463,7 +463,9 @@ InspIRCd::InspIRCd(int argc, char** argv) break; case '?': /* Unknown parameter */ - printf("Uknown parameter '%s'\n", argv[index]); + default: + /* Fall through to handle other weird values too */ + printf("Unknown parameter '%s'\n", argv[index]); printf("Usage: %s [--nofork] [--nolog] [--debug] [--logfile <filename>]\n\ [--runasroot] [--version] [--config <config>] [--testsuite]\n", argv[0]); Exit(EXIT_STATUS_ARGV); |