]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/flags.h
added items to the tavern.dat, added the filename option to the config file
[irc/gameservirc.git] / gameserv / flags.h
index 90e31d2a8255823df7b36f1bdc85c304a39b2f29..42d4217f04c5d6302d94e10416055363beec4b53 100644 (file)
@@ -38,6 +38,7 @@
 #define FLAG_ALIVE             0x00000002
 #define FLAG_YOURTURN          0x00000004
 #define FLAG_WONGAME           0x00000008
+#define FLAG_DRAGONFIGHT       0x00000010
 
 // Config File flags
 #define CFLAG_LISTENONCF               0x00000001
 #define CFLAG_BOPER                    0x00000004
 #define CFLAG_WELCOME                  0x00000008
 #define CFLAG_SAVEDNOTICE              0x00000010
+#define CFLAG_USENICKSERV              0x00000020
+
+#define setUseNickServ()               (configflags |= CFLAG_USENICKSERV)
+#define clearUseNickServ()             (configflags &= ~CFLAG_USENICKSERV)
+#define isUseNickServ()                        (configflags & CFLAG_USENICKSERV)
 
 #define setSavedNotice()               (configflags |= CFLAG_SAVEDNOTICE)
 #define clearSavedNotice()             (configflags &= ~CFLAG_SAVEDNOTICE)
-#define isSavedNotice()                        (configflags &= CFLAG_SAVEDNOTICE)
+#define isSavedNotice()                        (configflags & CFLAG_SAVEDNOTICE)
 
 #define setWelcome()                   (configflags |= CFLAG_WELCOME)
 #define clearWelcome()                 (configflags &= ~CFLAG_WELCOME)
 #define setWonGame(x)          ((x)->addFlag(FLAG_WONGAME))
 #define clearWonGame(x)                ((x)->remFlag(FLAG_WONGAME))
 
+#define isDragonFight(x)       ((x)->getFlags() & FLAG_DRAGONFIGHT)
+#define setDragonFight(x)      ((x)->addFlag(FLAG_DRAGONFIGHT))
+#define clearDragonFight(x)    ((x)->remFlag(FLAG_DRAGONFIGHT))
+
 #endif