summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-04-19 00:39:57 +0100
committerPeter Powell <petpow@saberuk.com>2019-04-19 00:39:57 +0100
commit21f0718c4ae18f565895b5cc05c4af3942d0f8e5 (patch)
tree3be0d7d346aa7f966dbf2321fc81656876735aea /include/users.h
parentd40ea20e6573b33d59cd9b68ab2790b4c990557d (diff)
Remove the 'noisy' mode for HasPrivPermission.
This was only used in one place.
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/users.h b/include/users.h
index 9a90567a0..d130aec1d 100644
--- a/include/users.h
+++ b/include/users.h
@@ -463,10 +463,9 @@ class CoreExport User : public Extensible
* 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.
*/
- virtual bool HasPrivPermission(const std::string &privstr, bool noisy = false);
+ virtual bool HasPrivPermission(const std::string& privstr);
/** 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
@@ -840,10 +839,9 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
* 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 noisy = false) CXX11_OVERRIDE;
+ bool HasPrivPermission(const std::string& privstr) CXX11_OVERRIDE;
/** 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