diff options
author | Adam <Adam@anope.org> | 2011-03-01 19:27:03 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-03-01 19:27:03 -0500 |
commit | 06679e487e9c2fe754ef913a10f925f890284702 (patch) | |
tree | f6346fe94399d147fd0f429ae65920efbade802a /src | |
parent | 54acc25eb3bd81c09261cc14258da5436c1a803d (diff) |
Do not show SENDPASS in NickServ and ChanServ help to users who can't use it
Diffstat (limited to 'src')
-rw-r--r-- | src/core/cs_sendpass.c | 3 | ||||
-rw-r--r-- | src/core/ns_sendpass.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/core/cs_sendpass.c b/src/core/cs_sendpass.c index 61801f64a..cbde13459 100644 --- a/src/core/cs_sendpass.c +++ b/src/core/cs_sendpass.c @@ -60,7 +60,8 @@ void AnopeFini(void) **/ void myChanServHelp(User * u) { - notice_lang(s_ChanServ, u, CHAN_HELP_CMD_SENDPASS); + if (!RestrictMail || is_services_oper(u)) + notice_lang(s_ChanServ, u, CHAN_HELP_CMD_SENDPASS); } /** diff --git a/src/core/ns_sendpass.c b/src/core/ns_sendpass.c index 2f51a8f55..ea98cfcc4 100644 --- a/src/core/ns_sendpass.c +++ b/src/core/ns_sendpass.c @@ -58,7 +58,8 @@ void AnopeFini(void) **/ void myNickServHelp(User * u) { - notice_lang(s_NickServ, u, NICK_HELP_CMD_SENDPASS); + if (!RestrictMail || is_services_oper(u)) + notice_lang(s_NickServ, u, NICK_HELP_CMD_SENDPASS); } /** |