added some more events and changed TempUser-Handling
[NeonServV5.git] / UserNode.h
index 49bb94067a446cfc3629fb848f5e2a4fc1201a21..eaddf59547843c90ede42f41ca507cd2b9a4ef86 100644 (file)
@@ -2,11 +2,13 @@
 #define _UserNode_h
 #include "main.h"
 
-#define USERFLAG_ISBOT     0x01
-#define USERFLAG_ISAUTHED  0x02
-#define USERFLAG_ISIRCOP   0x04
-#define USERFLAG_ISTMPUSER 0x08
-#define USERFLAG_ISSERVER  0x10
+#define USERFLAG_ISBOT       0x0001
+#define USERFLAG_ISAUTHED    0x0002
+#define USERFLAG_ISIRCOP     0x0004
+#define USERFLAG_ISTMPUSER   0x0008
+#define USERFLAG_ISSERVER    0x0010
+#define USERFLAG_FREETMPUSER 0x0020
+
 struct ChanUser;
 
 struct UserNode {
@@ -15,7 +17,8 @@ struct UserNode {
     char host[HOSTLEN+1];
     char realname[REALLEN+1];
     char auth[AUTHLEN+1];
-    char flags;
+    unsigned int flags;
+    time_t created;
     struct ChanUser *channel;
     
     struct UserNode *next;