From dd82cae06eaf6a1ca522a567fe49a656405bc19b Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 18 Oct 2008 16:52:55 +0000 Subject: Add priv channels/high-join-limit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10670 e03df62e-2008-0410-955e-edbf42e46eb7 --- conf/opers.conf.example | 13 ++++++++----- src/channels.cpp | 2 +- 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) { -- cgit v1.2.3