From 1a800f7b3db23cdef7e167cd25c0f3b2a64a8e46 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 9 Apr 2020 18:57:50 +0100 Subject: Improve storage of module description, flags, and link data. --- src/modules/m_maphide.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/modules/m_maphide.cpp') diff --git a/src/modules/m_maphide.cpp b/src/modules/m_maphide.cpp index 9ef7c5894..bde1fd1d2 100644 --- a/src/modules/m_maphide.cpp +++ b/src/modules/m_maphide.cpp @@ -26,8 +26,15 @@ class ModuleMapHide : public Module { + private: std::string url; + public: + ModuleMapHide() + : Module(VF_VENDOR, "Replaces the output of the MAP and LINKS commands with an URL") + { + } + void ReadConfig(ConfigStatus& status) override { url = ServerInstance->Config->ConfValue("security")->getString("maphide"); @@ -43,11 +50,6 @@ class ModuleMapHide : public Module else return MOD_RES_PASSTHRU; } - - Version GetVersion() override - { - return Version("Replaces the output of the MAP and LINKS commands with an URL", VF_VENDOR); - } }; MODULE_INIT(ModuleMapHide) -- cgit v1.3.1-10-gc9f91