summaryrefslogtreecommitdiff
path: root/services.h
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-05-02 09:11:57 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-05-02 09:11:57 +0000
commitee1ca39543172236e40ea98e88e9be6bd1fd0d24 (patch)
tree11845ea1fc005f0a7fe6ab84e929d3e14915b378 /services.h
parentf2ed3ecc8b66de929e0beeecfb2fc81f81201509 (diff)
BUILD : 1.7.2 (78) BUGS : N/A NOTES : Added the ability to add module data to the NickCore and the NickAlias structs
git-svn-id: svn://svn.anope.org/anope/trunk@78 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@54 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'services.h')
-rw-r--r--services.h41
1 files changed, 23 insertions, 18 deletions
diff --git a/services.h b/services.h
index 18a505d7a..9e2e13c60 100644
--- a/services.h
+++ b/services.h
@@ -185,6 +185,26 @@ typedef struct channel_ Channel;
#define PRE_NICK_VERSION 1
#define OPER_VERSION 13
+/**
+ * ModuleData strucs used to allow modules to add / delete module Data from existing structs
+ */
+typedef struct ModuleData_ ModuleData; /* ModuleData struct */
+typedef struct ModuleDataItem_ ModuleDataItem; /* A Module Data Item struct */
+
+struct ModuleDataItem_ {
+ char *key; /* The key */
+ char *value; /* The Value */
+ ModuleDataItem *next; /* The next ModuleDataItem in this list */
+};
+
+struct ModuleData_ {
+ char *moduleName; /* Which module we belong to */
+ ModuleDataItem *di; /* The first Item they own */
+ ModuleData *next; /* The next ModuleData record */
+};
+
+
+
typedef enum { false, true } boolean;
/*************************************************************************/
@@ -222,6 +242,7 @@ struct nickrequest_ {
char *passcode;
char *password;
char *email;
+
time_t requested;
time_t lastmail; /* Unsaved */
@@ -244,6 +265,7 @@ struct nickalias_ {
NickCore *nc; /* I'm an alias of this */
/* Not saved */
+ ModuleData *moduleData[1024]; /* Module saved data attached to the nick alias */
User *u; /* Current online user that has me */
};
@@ -270,7 +292,7 @@ struct nickcore_ {
uint16 channelmax; /* Maximum number of channels allowed */
/* Unsaved data */
-
+ ModuleData *moduleData[1024]; /* Module saved data attached to the NickCore */
time_t lastmail; /* Last time this nick record got a mail */
SList aliases; /* List of aliases */
};
@@ -644,23 +666,6 @@ struct csmodeutil_ {
#endif
/*************************************************************************/
-typedef struct ModuleData_ ModuleData; /* ModuleData struct */
-typedef struct ModuleDataItem_ ModuleDataItem; /* A Module Data Item struct */
-
-struct ModuleDataItem_ {
- char *key; /* The key */
- char *value; /* The Value */
- ModuleDataItem *next; /* The next ModuleDataItem in this list */
-};
-
-struct ModuleData_ {
- char *moduleName; /* Which module we belong to */
- ModuleDataItem *di; /* The first Item they own */
- ModuleData *next; /* The next ModuleData record */
-};
-
-
-
/* Online user and channel data. */
struct user_ {
User *next, *prev;