diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-15 15:21:35 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-15 15:21:35 +0000 |
| commit | f07229a9ee06bd989efd14f4223e787b90f9148e (patch) | |
| tree | 2be730bfae5a09eba1e2e4b22fd300ce706d4490 /include | |
| parent | f92bf30f15b8f4d287abe3ba9e600cb832fa4e7e (diff) | |
Blah, blah..
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2061 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
| -rw-r--r-- | include/account.h | 3 | ||||
| -rw-r--r-- | include/opertype.h (renamed from include/svsoper.h) | 6 | ||||
| -rw-r--r-- | include/services.h | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/include/account.h b/include/account.h index 0217753ad..ed0bcc877 100644 --- a/include/account.h +++ b/include/account.h @@ -58,6 +58,7 @@ class NickCore : public Extensible { next = prev = NULL; display = email = greet = url = NULL; + ot = NULL; pass[0] = '\0'; icq = flags = 0; language = accesscount = channelcount = 0; @@ -79,6 +80,8 @@ class NickCore : public Extensible MemoInfo memos; uint16 channelcount; /* Number of channels currently registered */ + OperType *ot; + /* Unsaved data */ time_t lastmail; /* Last time this nick record got a mail */ SList aliases; /* List of aliases */ diff --git a/include/svsoper.h b/include/opertype.h index bf5c5c486..9d5e77224 100644 --- a/include/svsoper.h +++ b/include/opertype.h @@ -9,7 +9,7 @@ * */ -class SVSOper +class OperType { private: /** The name of this opertype, e.g. "sra". @@ -31,6 +31,10 @@ class SVSOper */ std::list<std::string> commands; public: + /** Create a new opertype of the given name. + * @param nname The opertype name, e.g. "sra". + */ + OperType(const std::string &nname); /** Check whether this opertype has access to run the given command string. * @param cmdstr The string to check, e.g. botserv/set/private. diff --git a/include/services.h b/include/services.h index 552688411..6f7353111 100644 --- a/include/services.h +++ b/include/services.h @@ -433,7 +433,7 @@ typedef struct csmodeutil_ CSModeUtil; typedef struct session_ Session; #include "bots.h" -#include "svsoper.h" +#include "opertype.h" /*************************************************************************/ |
