Update version tag for 1.4.0-rc2.
[srvx.git] / src / nickserv.h
index 9c1f6e930d291239ff202042b1107329e577c67b..5054de3effafdba37488262ddeb962ff2cc0cc85 100644 (file)
@@ -42,8 +42,8 @@ struct svccmd;
 #define HANDLE_FLAGS "SphgscfnHb"
 
 /* HI_STYLE_* go into handle_info.userlist_style */
-#define HI_STYLE_DEF          'd'
-#define HI_STYLE_ZOOT         'Z'
+#define HI_STYLE_DEF    'd'
+#define HI_STYLE_ZOOT   'Z'
 
 #define HI_DEFAULT_FLAGS       (HI_FLAG_MIRC_COLOR)
 #define HI_DEFAULT_STYLE       HI_STYLE_DEF
@@ -71,16 +71,26 @@ struct handle_cookie {
     struct handle_info *hi;
     char *data;
     enum cookie_type type;
-    time_t expires;
+    unsigned long expires;
     char cookie[COOKIELEN+1];
 };
 
+struct handle_note {
+    struct handle_note *next;
+    unsigned long expires;
+    unsigned long set;
+    int id;
+    char setter[NICKSERV_HANDLE_LEN+1];
+    char note[1];
+};
+
 struct handle_info {
     struct nick_info *nicks;
     struct string_list *masks;
     struct userNode *users;
     struct userData *channels;
     struct handle_cookie *cookie;
+    struct handle_note *notes;
     struct language *language;
     char *email_addr;
     char *epithet;
@@ -90,14 +100,14 @@ struct handle_info {
 #ifdef WITH_PROTOCOL_BAHAMUT
     unsigned long id;
 #endif
-    time_t registered;
-    time_t lastseen;
+    unsigned long registered;
+    unsigned long lastseen;
+    int karma;
     unsigned short flags;
     unsigned short opserv_level;
     unsigned short screen_width;
     unsigned short table_width;
     unsigned char userlist_style;
-    unsigned char announcements;
     unsigned char maxlogins;
     char passwd[MD5_CRYPT_LENGTH+1];
     char last_quit_host[USERLEN+HOSTLEN+2];