summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-07 20:16:09 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-07 20:16:09 +0000
commit011e4268459819a76b786a22c81595b9aa34d665 (patch)
tree85dbab4e132135fa6bcd499c22600675363fa2d4
parent75f39dec7af0a493767d92e121601060e29d7e17 (diff)
Removed the chanserv/aop/list command perm and switched it with chanserv/access/list. Fixed a bug so users on the access list can request the vop and hop list.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2940 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--data/example.conf4
-rw-r--r--docs/Changes.conf1
-rw-r--r--src/core/cs_xop.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/data/example.conf b/data/example.conf
index 2d44fe6d4..a47735ec0 100644
--- a/data/example.conf
+++ b/data/example.conf
@@ -583,8 +583,8 @@ options
* botserv/botlist botserv/set/private botserv/set/nobot
*
* chanserv/access/list chanserv/drop chanserv/forbid chanserv/getkey
- * chanserv/list chanserv/aop/list chanserv/suspend chanserv/set/noexpire
- * chanserv/status chanserv/topic
+ * chanserv/list chanserv/suspend chanserv/topic chanserv/set/noexpire
+ * chanserv/status
*
* memoserv/sendall memoserv/staff
*
diff --git a/docs/Changes.conf b/docs/Changes.conf
index c25bbe80a..de91d3808 100644
--- a/docs/Changes.conf
+++ b/docs/Changes.conf
@@ -12,6 +12,7 @@ options:passlen added to specify the maximum length of passwords
uplink:ipv6 added to enable IPv6 connectivity
options:maxretries added to specify the number of reconnect attempts allowed
options:retrywait added to specify how long to wait between reconnect attempts
+opertype command chanserv/aop/list removed as it was unnecessary, use chanserv/access/list instead
** MODIFIED CONFIGURATION DIRECTIVES **
options:encryption added enc_sha256
diff --git a/src/core/cs_xop.c b/src/core/cs_xop.c
index fdedfa9bf..d6dc37e90 100644
--- a/src/core/cs_xop.c
+++ b/src/core/cs_xop.c
@@ -311,7 +311,7 @@ class XOPBase : public Command
int sent_header = 0;
const char *nick = params.size() > 2 ? params[2].c_str() : NULL;
- if (level < ACCESS_AOP && !u->Account()->HasCommand("chanserv/aop/list"))
+ if (!get_access(u, ci) && !u->Account()->HasCommand("chanserv/access/list"))
{
notice_lang(Config.s_ChanServ, u, ACCESS_DENIED);
return MOD_CONT;