aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_maphide.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-04-09 18:57:50 +0100
committerGravatar Sadie Powell2020-04-11 13:54:05 +0100
commit1a800f7b3db23cdef7e167cd25c0f3b2a64a8e46 (patch)
treef302e819c6707d578c2011544069a21640fab735 /src/modules/m_maphide.cpp
parentDefault <sslprofile:hash> to sha256 for GnuTLS and OpenSSL. (diff)
Improve storage of module description, flags, and link data.
Diffstat (limited to 'src/modules/m_maphide.cpp')
-rw-r--r--src/modules/m_maphide.cpp12
1 files changed, 7 insertions, 5 deletions
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)