1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 10:16:40 +02:00

fixed the --dir commandline parameter

This commit is contained in:
DukePyrolator
2012-03-04 10:18:25 +01:00
parent 4ed844ffd5
commit b7a6d518b0
+1 -1
View File
@@ -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;