summaryrefslogtreecommitdiff
path: root/src/core/cs_sendpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cs_sendpass.c')
-rw-r--r--src/core/cs_sendpass.c3
1 files changed, 2 insertions, 1 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);
}
/**