diff options
Diffstat (limited to 'modules/core/os_modinfo.cpp')
-rw-r--r-- | modules/core/os_modinfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/core/os_modinfo.cpp b/modules/core/os_modinfo.cpp index 6634d2939..0533ad1a6 100644 --- a/modules/core/os_modinfo.cpp +++ b/modules/core/os_modinfo.cpp @@ -42,7 +42,7 @@ class CommandOSModInfo : public Command { const Anope::string &file = params[0]; - Module *m = FindModule(file); + Module *m = ModuleManager::FindModule(file); if (m) { source.Reply(_("Module: \002%s\002 Version: \002%s\002 Author: \002%s\002 loaded: \002%s\002"), m->name.c_str(), !m->version.empty() ? m->version.c_str() : "?", !m->author.empty() ? m->author.c_str() : "?", do_strftime(m->created).c_str()); @@ -75,10 +75,9 @@ class OSModInfo : public Module CommandOSModInfo commandosmodinfo; public: - OSModInfo(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) + OSModInfo(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE) { this->SetAuthor("Anope"); - this->SetType(CORE); if (!operserv) throw ModuleException("OperServ is not loaded!"); |