summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-18 16:52:48 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-18 16:52:48 +0000
commit0d3ecb964292600ec1ce6ee1cef83f72185a8bcc (patch)
tree976feadbe1a37f03cf91149bc8d4c930f90e592e /include
parentf43283920224b3d762ae371d7320024512a8afde (diff)
Working privs implementation, and example usage in NOTICE for mass messaging.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10662 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h12
-rw-r--r--include/users.h3
2 files changed, 11 insertions, 4 deletions
diff --git a/include/configreader.h b/include/configreader.h
index 41a0fc9b1..89116c5c5 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -232,13 +232,19 @@ struct operclass_data : public Extensible
{
/** Command list for the class
*/
- char* commandlist;
+ char *commandlist;
+
/** Channel mode list for the class
*/
- char* cmodelist;
+ char *cmodelist;
+
/** User mode list for the class
*/
- char* umodelist;
+ char *umodelist;
+
+ /** Priviledges given by this class
+ */
+ char *privs;
};
/** A Set of oper classes
diff --git a/include/users.h b/include/users.h
index 2f8730088..d8a9b3e64 100644
--- a/include/users.h
+++ b/include/users.h
@@ -794,8 +794,9 @@ class CoreExport User : public EventHandler
* all operators, yet are not commands. An example might be oper override, mass messaging (/notice $*), etc.
*
* @param privstr The priv to chec, e.g. "users/override/topic". These are loaded free-form from the config file.
+ * @param noisy If set to true, the user is notified that they do not have the specified permission where applicable. If false, no notification is sent.
* @return True if this user has the permission in question.
- */ bool HasPrivPermission(const std::string &privstr);
+ */ bool HasPrivPermission(const std::string &privstr, bool noisy = true);
/** Returns true or false if a user can set a privileged user or channel mode.
* This is done by looking up their oper type from User::oper, then referencing