summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-03-01 19:27:03 -0500
committerAdam <Adam@anope.org>2011-03-01 19:27:03 -0500
commit06679e487e9c2fe754ef913a10f925f890284702 (patch)
treef6346fe94399d147fd0f429ae65920efbade802a
parent54acc25eb3bd81c09261cc14258da5436c1a803d (diff)
Do not show SENDPASS in NickServ and ChanServ help to users who can't use it
-rw-r--r--src/core/cs_sendpass.c3
-rw-r--r--src/core/ns_sendpass.c3
-rw-r--r--version.log3
3 files changed, 6 insertions, 3 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);
}
/**
diff --git a/version.log b/version.log
index ad6bab901..add886b7f 100644
--- a/version.log
+++ b/version.log
@@ -8,9 +8,10 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="5"
VERSION_EXTRA="-git"
-VERSION_BUILD="3061"
+VERSION_BUILD="3062"
# $Log$ # Changes since 1.8.5 Release
+#Revision 3062 - Do not show SENDPASS in NickServ and ChanServ help to users who can't use it
#Revision 3061 - Rejoin our clients if kicked on TS6 IRCDs and made ratbox protocol module use account tracking
#Revision 3060 - Fixed bug 1248, an error in fr.l - reported by SaKa
#Revision 3059 - Fixed the wiki URLs in install.js