aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_httpd.cpp
diff options
context:
space:
mode:
authorGravatar Valentin Lorentz2021-08-04 22:27:55 +0200
committerGravatar Sadie Powell2021-08-10 11:38:49 +0100
commit3d6365989f57a96f12e02dc85b111beb7947ec73 (patch)
tree7dff3ca22d7da31a1e9cbbcaf9fed24cc92f2968 /src/modules/m_httpd.cpp
parentMakes NAMES reply with RPL_ENDOFNAMES even for nonexisting channels (diff)
Fix argv index error in 'unknown option' message.
It looks like ya_getopt increments `optind` between reading the argument and returning. Before: ``` $ ./build/GCC-8.3/bin/inspircd --foo bar Error: unknown option 'bar'. $ ./build/GCC-8.3/bin/inspircd --help Error: unknown option '% ``` After: ``` $ ./build/GCC-8.3/bin/inspircd --foo bar Error: unknown option '--foo'. Usage: ./build/GCC-8.3/bin/inspircd [--config <file>] [--debug] [--nofork] [--nolog] [--nopid] [--runasroot] [--version] $ ./build/GCC-8.3/bin/inspircd --help Error: unknown option '--help'. Usage: ./build/GCC-8.3/bin/inspircd [--config <file>] [--debug] [--nofork] [--nolog] [--nopid] [--runasroot] [--version] ```
Diffstat (limited to 'src/modules/m_httpd.cpp')
0 files changed, 0 insertions, 0 deletions