mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 03:59:03 -04:00
parent
fd4b74357b
commit
61dcf0d999
@ -39,7 +39,7 @@ class ModuleMapHide : public Module
|
||||
|
||||
ModResult OnPreCommand(std::string &command, std::vector<std::string> ¶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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user