Merge branch 'development'
[NeonServV5.git] / src / ChanUser.h
index e98a8cd25efeecddff6e6e28ac3ef791306b07b0..62d8361ca7c3a6c7313841588746b343845d669a 100644 (file)
 #define _ChanUser_h
 #include "main.h"
 
-#define CHANUSERFLAG_OPPED  0x01
-#define CHANUSERFLAG_VOICED 0x02
+#define CHANUSERFLAG_OPPED     0x01
+#define CHANUSERFLAG_VOICED    0x02
 #define CHANUSERFLAG_INVISIBLE 0x04
 #define CHANUSERFLAG_HALFOPPED 0x08
+#define CHANUSERFLAG_PARTING   0x10
 
 #define CHANUSERFLAG_OPPED_OR_VOICED (CHANUSERFLAG_OPPED | CHANUSERFLAG_HALFOPPED | CHANUSERFLAG_VOICED)
 
@@ -34,7 +35,8 @@ struct ChanUser {
     struct ChanNode *chan;
     struct UserNode *user;
     
-    int visCount; //visible counter - if this is 0, the ChanUser gets removed
+    int visCount : 8; //visible counter - if this is 0, the ChanUser gets removed
+    int old_visCount : 8;
     
     int chageEvents;
     time_t changeTime;