Convert time-related variables to consistently use "unsigned long".
[srvx.git] / src / nickserv.h
index fd88a327db4f54254238452e1c4f1aace6c77089..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,14 +71,14 @@ 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;
-    time_t expires;
-    time_t set;
+    unsigned long expires;
+    unsigned long set;
     int id;
     char setter[NICKSERV_HANDLE_LEN+1];
     char note[1];
@@ -100,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];