summaryrefslogtreecommitdiff
path: root/modules/commands/ns_set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/ns_set.cpp')
-rw-r--r--modules/commands/ns_set.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp
index dc007289e..886f8d2d4 100644
--- a/modules/commands/ns_set.cpp
+++ b/modules/commands/ns_set.cpp
@@ -1,6 +1,6 @@
/* NickServ core functions
*
- * (C) 2003-2017 Anope Team
+ * (C) 2003-2018 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
@@ -42,6 +42,9 @@ class CommandNSSet : public Command
if (c_name.find_ci(this_name + " ") == 0)
{
+ if (info.hide)
+ continue;
+
ServiceReference<Command> c("Command", info.name);
// XXX dup
if (!c)
@@ -426,11 +429,13 @@ class CommandNSSetEmail : public Command
subject = subject.replace_all_cs("%e", nc->email);
subject = subject.replace_all_cs("%E", new_email);
+ subject = subject.replace_all_cs("%n", nc->display);
subject = subject.replace_all_cs("%N", Config->GetBlock("networkinfo")->Get<const Anope::string>("networkname"));
subject = subject.replace_all_cs("%c", code);
message = message.replace_all_cs("%e", nc->email);
message = message.replace_all_cs("%E", new_email);
+ message = message.replace_all_cs("%n", nc->display);
message = message.replace_all_cs("%N", Config->GetBlock("networkinfo")->Get<const Anope::string>("networkname"));
message = message.replace_all_cs("%c", code);
@@ -963,7 +968,7 @@ class CommandNSSetMessage : public Command
void OnServHelp(CommandSource &source) anope_override
{
- if (!Config->GetBlock("options")->Get<bool>("useprivmsg"))
+ if (Config->GetBlock("options")->Get<bool>("useprivmsg"))
Command::OnServHelp(source);
}
};