summaryrefslogtreecommitdiff
path: root/src/modules/m_maphide.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_maphide.cpp')
-rw-r--r--src/modules/m_maphide.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/modules/m_maphide.cpp b/src/modules/m_maphide.cpp
index 546e342ae..f0502d175 100644
--- a/src/modules/m_maphide.cpp
+++ b/src/modules/m_maphide.cpp
@@ -39,7 +39,7 @@ class ModuleMapHide : public Module
ModResult OnPreCommand(std::string &command, std::vector<std::string> &parameters, LocalUser *user, bool validated, const std::string &original_line)
{
- if (validated && !IS_OPER(user) && !url.empty() && (command == "MAP" || command == "LINKS"))
+ if (validated && !user->IsOper() && !url.empty() && (command == "MAP" || command == "LINKS"))
{
user->WriteServ("NOTICE %s :/%s has been disabled; visit %s", user->nick.c_str(), command.c_str(), url.c_str());
return MOD_RES_DENY;
@@ -48,10 +48,6 @@ class ModuleMapHide : public Module
return MOD_RES_PASSTHRU;
}
- virtual ~ModuleMapHide()
- {
- }
-
virtual Version GetVersion()
{
return Version("Hide /MAP and /LINKS in the same form as ircu (mostly useless)", VF_VENDOR);
@@ -59,4 +55,3 @@ class ModuleMapHide : public Module
};
MODULE_INIT(ModuleMapHide)
-