diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2012-03-04 10:18:25 +0100 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2012-03-04 10:18:25 +0100 |
commit | b7a6d518b0bb7837c2b9a453f133ffcd03d392ca (patch) | |
tree | d734dad84ac986f2e86a98acbf009b4add07c1f2 /src | |
parent | 4ed844ffd5e19a7e95c47e34dbf7d3fd83039d3c (diff) |
fixed the --dir commandline parameter
Diffstat (limited to 'src')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::pair<Anope::string, Anope::string> >::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; |