]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/flags.h
Added a couple new directives to the config file
[irc/gameservirc.git] / gameserv / flags.h
index 4c9557581f3829d7d9ffd90f295174d6fa5b76b8..c2a2ba123f25999e92174736fe0c27e7d935c594 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef FLAGS_H
 #define FLAGS_H
 
+#include "extern.h"
+
 /* This file contains all the flags used in the aClient and Player classes.
  * More flags can be added simply by going up in multiples of 2.
  * ie. 0001 0002 0004 0008 0010 0020 0040 0080 0100 0200 0400 0800 1000 2000 4000
 #define FLAG_YOURTURN          0x0004
 #define FLAG_WONGAME           0x0008
 
+// Config File flags
+#define CFLAG_LISTENONCF               0x0001
+#define CFLAG_USEPRIVMSG               0x0002
+#define CFLAG_BOPER                    0x0004
+
+#define setListenOnCF()                        (configflags |= CFLAG_LISTENONCF)
+#define clearListenOnCF()              (configflags &= ~CFLAG_LISTENONCF)
+#define isListenonCF()                 (configflags & CFLAG_LISTENONCF)
+
+#define setUsePrivmsg()                        (configflags |= CFLAG_USEPRIVMSG)
+#define clearUsePrivmsg()              (configflags &= ~CFLAG_USEPRIVMSG)
+#define isUsePrivmsg()                 (configflags & CFLAG_USEPRIVMSG)
+
+#define setBOper()                     (configflags |= CFLAG_BOPER)
+#define clearBOPer()                   (configflags &= ~CFLAG_BOPER)
+#define isBOper()                      (configflags & CFLAG_BOPER)
 
 // aClient flags
 // #define ADMIN_FLAGS(FLAG_ONE | FLAG_TWO | FLAG_ETC)