]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/flags.h
Added a new config file directive USE_PRIVMSG and implemented a flag system for confi...
[irc/gameservirc.git] / gameserv / flags.h
index 4c9557581f3829d7d9ffd90f295174d6fa5b76b8..7c895c712b38bcfd80c0f5ec8e6f2ed4674d81ab 100644 (file)
 #define FLAG_YOURTURN          0x0004
 #define FLAG_WONGAME           0x0008
 
+// Config File flags
+#define CFLAG_LISTENONCF               0x0001
+#define CFLAG_USEPRIVMSG               0x0002
+
+#define setListenOnCF(x)               (x |= CFLAG_LISTENONCF)
+#define clearListenOnCF(x)             (x &= ~CFLAG_LISTENONCF)
+#define isListenonCF(x)                        (x & CFLAG_LISTENONCF)
+
+#define setUsePrivmsg(x)               (x |= CFLAG_USEPRIVMSG)
+#define clearUsePrivmsg(x)             (x &= ~CFLAG_USEPRIVMSG)
+#define isUsePrivmsg(x)                        (x & CFLAG_USEPRIVMSG)
 
 // aClient flags
 // #define ADMIN_FLAGS(FLAG_ONE | FLAG_TWO | FLAG_ETC)