summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-01-13 23:33:20 +0100
committerattilamolnar <attilamolnar@hush.com>2013-01-13 23:33:20 +0100
commit61dcf0d999ef05347b8a2a556912f7a235335987 (patch)
tree8316a8d807fc91d1a67a65556228f389fc629732
parentfd4b74357b7097948c16e2a51ad116f6bb66b48d (diff)
m_maphide Ignore unregistered users
Fixes #400 reported by @SaberUK
-rw-r--r--src/modules/m_maphide.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_maphide.cpp b/src/modules/m_maphide.cpp
index d9e58ca48..546e342ae 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 (!IS_OPER(user) && !url.empty() && (command == "MAP" || command == "LINKS"))
+ if (validated && !IS_OPER(user) && !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;