Merge branch 'development'
[NeonServV5.git] / src / ChanUser.h
index 43a6b7d7a7a514e448f1f43e73255947cf92e5fc..62d8361ca7c3a6c7313841588746b343845d669a 100644 (file)
@@ -1,4 +1,4 @@
-/* ChanUser.h - NeonServ v5.4
+/* ChanUser.h - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
 #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;