diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-15 15:22:20 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-15 15:22:20 +0000 |
commit | 83243793468c7af887404ca30c34146436682610 (patch) | |
tree | 11f6fb7ffd31bd3b2b6aab1a817d907db017f452 /include/opertype.h | |
parent | 855847f428412e85087384df73096d9056526937 (diff) |
Can now correctly tie users to opertypes.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2063 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/opertype.h')
-rw-r--r-- | include/opertype.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/opertype.h b/include/opertype.h index 9d5e77224..d6a3c4306 100644 --- a/include/opertype.h +++ b/include/opertype.h @@ -40,13 +40,13 @@ class OperType * @param cmdstr The string to check, e.g. botserv/set/private. * @return True if this opertype may run the specified command, false otherwise. */ - bool HasCommand(const std::string &cmdstr); + bool HasCommand(const std::string &cmdstr) const; /** Check whether this opertype has access to the given special permission. * @param privstr The priv to check for, e.g. users/auspex. * @return True if this opertype has the specified priv, false otherwise. */ - bool HasPriv(const std::string &privstr); + bool HasPriv(const std::string &privstr) const; /** Add the specified command to this opertype. * @param cmdstr The command mask to grant this opertype access to, e.g: nickserv/ *, chanserv/set/ *, botserv/set/private. @@ -57,4 +57,8 @@ class OperType * @param privstr The specified mask of privs to grant this opertype access to, e.g. users/auspex, users/ *, etc. */ void AddPriv(const std::string &privstr); + + /** Returns the name of this opertype. + */ + const std::string &GetName() const; }; |