-/* ChanUser.h - NeonServ v5.3
+/* 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)
struct ChanNode *chan;
struct UserNode *user;
+ int visCount : 8; //visible counter - if this is 0, the ChanUser gets removed
+ int old_visCount : 8;
+
int chageEvents;
time_t changeTime;