summaryrefslogtreecommitdiff
path: root/src/module.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-06 22:54:52 -0400
committerAdam <Adam@anope.org>2012-10-06 22:54:52 -0400
commit4751c735ec011ecd60adb444a19567671d8cfb4e (patch)
tree92cb274007b423c12becc755d0b08e4d75ff502a /src/module.cpp
parent4ec10d798b63c971352f20f7be5e734956617094 (diff)
Fixed module language file path
Diffstat (limited to 'src/module.cpp')
-rw-r--r--src/module.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module.cpp b/src/module.cpp
index c08d25aff..2f70cb96b 100644
--- a/src/module.cpp
+++ b/src/module.cpp
@@ -33,7 +33,7 @@ Module::Module(const Anope::string &modname, const Anope::string &, ModType modt
#if GETTEXT_FOUND
for (unsigned i = 0; i < languages.size(); ++i)
- if (IsFile("languages/" + languages[i] + "/LC_MESSAGES/" + modname + ".mo"))
+ if (IsFile(locale_dir + "/" + languages[i] + "/LC_MESSAGES/" + modname + ".mo"))
{
if (!bindtextdomain(this->name.c_str(), locale_dir.c_str()))
Log() << "Error calling bindtextdomain, " << Anope::LastError();