diff --git a/modules/commands/ns_set_message.cpp b/modules/commands/ns_set_message.cpp index 06aae4748..a56c3fd77 100644 --- a/modules/commands/ns_set_message.cpp +++ b/modules/commands/ns_set_message.cpp @@ -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