diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-19 15:10:25 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-19 15:11:40 +0000 |
commit | fde3438ef29447f41a6eb48049f8d620c1c2eb30 (patch) | |
tree | fcd2f03a9d5b693106ab545d3ffd08934149aee2 /src/module.cpp | |
parent | 1575dea5b96e7249d94ebc9214a73d123919c4ba (diff) |
Allow using absolute paths in more places.
Diffstat (limited to 'src/module.cpp')
-rw-r--r-- | src/module.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module.cpp b/src/module.cpp index 63442e623..0511ad026 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -46,7 +46,7 @@ Module::Module(const Anope::string &modname, const Anope::string &, ModType modt Anope::string lang; sepstream(language, '.').GetToken(lang); - if (Anope::IsFile(Anope::LocaleDir + "/" + lang + "/LC_MESSAGES/" + modname + ".mo")) + if (Anope::IsFile(Anope::ExpandLocale(lang + "/LC_MESSAGES/" + modname + ".mo"))) { if (!bindtextdomain(this->name.c_str(), Anope::LocaleDir.c_str())) Log() << "Error calling bindtextdomain, " << Anope::LastError(); |