diff options
author | Adam <Adam@anope.org> | 2012-05-11 00:50:58 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-05-11 00:50:58 -0400 |
commit | a84226edf0368aab581fcd1365a0cbff6e0c5a4a (patch) | |
tree | 22da857f46e6a2fa1d92a13951893872dc65d0ba | |
parent | 9370b063d0d8ecdd479370ee8c1d7946fbcad4be (diff) |
Do not show help for set message if useprivmsg is disabled
-rw-r--r-- | modules/commands/ns_set_message.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 |