From b7a6d518b0bb7837c2b9a453f133ffcd03d392ca Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Sun, 4 Mar 2012 10:18:25 +0100 Subject: [PATCH] fixed the --dir commandline parameter --- src/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.cpp b/src/init.cpp index 959dbbb16..1b31c0682 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -146,7 +146,7 @@ bool GetCommandLineArgument(const Anope::string &name, char shortname, Anope::st for (std::vector >::iterator it = CommandLineArguments.begin(), it_end = CommandLineArguments.end(); it != it_end; ++it) { - if (it->first.equals_ci(name) || it->first[0] == shortname) + if (it->first.equals_ci(name) || (it->first.length() == 1 && it->first[0] == shortname)) { param = it->second; return true;