diff options
Diffstat (limited to 'src/module.cpp')
-rw-r--r-- | src/module.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/module.cpp b/src/module.cpp index 3aab9f46f..7722c7748 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -40,11 +40,11 @@ Module::Module(const Anope::string &modname, const Anope::string &, ModType modt ModuleManager::Modules.push_back(this); #if HAVE_LOCALIZATION - for (unsigned i = 0; i < Language::Languages.size(); ++i) + for (const auto &language : Language::Languages) { /* Remove .UTF-8 or any other suffix */ Anope::string lang; - sepstream(Language::Languages[i], '.').GetToken(lang); + sepstream(language, '.').GetToken(lang); if (Anope::IsFile(Anope::LocaleDir + "/" + lang + "/LC_MESSAGES/" + modname + ".mo")) { |