1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 07:13:13 +02:00

Do not show help for set message if useprivmsg is disabled

This commit is contained in:
Adam
2012-05-11 00:50:58 -04:00
parent 9370b063d0
commit a84226edf0
+7 -1
View File
@@ -34,7 +34,7 @@ class CommandNSSetMessage : public Command
if (!Config->UsePrivmsg)
{
source.Reply(_("Option \002%s\02 cannot be set on this network."), "MSG");
source.Reply(_("You cannot %s on this network."), source.command.c_str());
return;
}
@@ -68,6 +68,12 @@ class CommandNSSetMessage : public Command
"use notices."));
return true;
}
void OnServHelp(CommandSource &source) anope_override
{
if (Config->UsePrivmsg)
Command::OnServHelp(source);
}
};
class CommandNSSASetMessage : public CommandNSSetMessage