summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2012-03-04 10:18:25 +0100
committerDukePyrolator <DukePyrolator@anope.org>2012-03-04 10:18:25 +0100
commitb7a6d518b0bb7837c2b9a453f133ffcd03d392ca (patch)
treed734dad84ac986f2e86a98acbf009b4add07c1f2 /src
parent4ed844ffd5e19a7e95c47e34dbf7d3fd83039d3c (diff)
fixed the --dir commandline parameter
Diffstat (limited to 'src')
-rw-r--r--src/init.cpp2
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;