summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-18 16:52:55 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-18 16:52:55 +0000
commitdd82cae06eaf6a1ca522a567fe49a656405bc19b (patch)
treebe234089ba88554ebe10d9c1ea446451b2715a54
parent63693d848328c335c5ddc7c51300d2fda0f4d140 (diff)
Add priv channels/high-join-limit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10670 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--conf/opers.conf.example13
-rw-r--r--src/channels.cpp2
2 files changed, 9 insertions, 6 deletions
diff --git a/conf/opers.conf.example b/conf/opers.conf.example
index 7aa51b0de..143544521 100644
--- a/conf/opers.conf.example
+++ b/conf/opers.conf.example
@@ -18,11 +18,14 @@
commands="DIE RESTART REHASH LOADMODULE UNLOADMODULE RELOAD"
# privs: special priviledges that users with this class may utilise.
- # users/mass-message: allows users with this priv to PRIVMSG and NOTICE to a server mask (e.g. NOTICE $*)
- # channels/auspex: allows opers with this priv to see more detail about channels than normal users.
- # users/auspex: allows opers with this priv to view more details about users than normal users.
- # servers/auspex: allows opers with this priv to see more detail about server information than normal users.
- privs="users/mass-message"
+ # VIEWING:
+ # - channels/auspex: allows opers with this priv to see more detail about channels than normal users.
+ # - users/auspex: allows opers with this priv to view more details about users than normal users.
+ # - servers/auspex: allows opers with this priv to see more detail about server information than normal users.
+ # ACTIONS
+ # - users/mass-message: allows users with this priv to PRIVMSG and NOTICE to a server mask (e.g. NOTICE $*)
+ # - channels/high-join-limit: allows users with this priv to join a higher maximum number of channels
+ privs="users/auspex channels/auspex servers/auspex users/mass-message channels/high-join-limit"
# usermodes: Oper-only usermodes that opers with this class can use.
usermodes="*"
diff --git a/src/channels.cpp b/src/channels.cpp
index 17c7749ea..7374f091e 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -276,7 +276,7 @@ Channel* Channel::JoinUser(InspIRCd* Instance, User *user, const char* cn, bool
}
else
{
- if (IS_OPER(user))
+ if (user->HasPrivPermission("channels/high-join-limit"))
{
if (user->chans.size() >= Instance->Config->OperMaxChans)
{