X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fusers.h;h=dc7da40fe2a7e2adb817fcba8894f4b185ffa3d7;hb=2cd6efcc64458c7b5c33529eb58fe00b7bc5e4ef;hp=3937f74aae4cc651e5702370238f970a5f69988f;hpb=cbef0241a04eafe5250b75ebb3f7ef8c32ecb260;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/users.h b/include/users.h index 3937f74aa..dc7da40fe 100644 --- a/include/users.h +++ b/include/users.h @@ -456,17 +456,16 @@ class CoreExport User : public Extensible * @param command A command (should be all CAPS) * @return True if this user can execute the command */ - virtual bool HasPermission(const std::string &command); + virtual bool HasCommandPermission(const std::string& command); /** Returns true if a user has a given permission. * This is used to check whether or not users may perform certain actions which admins may not wish to give to * 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 @@ -772,11 +771,6 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node