From 855847f428412e85087384df73096d9056526937 Mon Sep 17 00:00:00 2001 From: rburchell Date: Sun, 15 Feb 2009 15:21:55 +0000 Subject: Shuffle shit around. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2062 5417fbe8-f217-4b02-8779-1006273d7864 --- include/account.h | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'include') 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); }; -- cgit