From 61dcf0d999ef05347b8a2a556912f7a235335987 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 13 Jan 2013 23:33:20 +0100 Subject: m_maphide Ignore unregistered users Fixes #400 reported by @SaberUK --- src/modules/m_maphide.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') 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 ¶meters, 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; -- cgit v1.2.3