diff options
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" /*************************************************************************/ |
