diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-15 15:21:55 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-15 15:21:55 +0000 |
| commit | 855847f428412e85087384df73096d9056526937 (patch) | |
| tree | bdc7063da264e2f433e5c7ffa7bafc4a53559994 /include | |
| parent | f07229a9ee06bd989efd14f4223e787b90f9148e (diff) | |
Shuffle shit around.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2062 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
| -rw-r--r-- | include/account.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/include/account.h b/include/account.h index ed0bcc877..f88a5b644 100644 --- a/include/account.h +++ b/include/account.h @@ -54,16 +54,7 @@ class NickAlias class NickCore : public Extensible { public: - NickCore() - { - next = prev = NULL; - display = email = greet = url = NULL; - ot = NULL; - pass[0] = '\0'; - icq = flags = 0; - language = accesscount = channelcount = 0; - lastmail = 0; - } + NickCore(); NickCore *next, *prev; @@ -85,5 +76,17 @@ class NickCore : public Extensible /* Unsaved data */ time_t lastmail; /* Last time this nick record got a mail */ SList aliases; /* List of aliases */ + + /** Check whether this opertype has access to run the given command string. + * @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); + + /** 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); }; |
