]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/flags.h
removed currentdragon.dat
[irc/gameservirc.git] / gameserv / flags.h
index c2a2ba123f25999e92174736fe0c27e7d935c594..833fbd649e2077d49a52e7c527be183156fb91f5 100644 (file)
  */
 
 // aClient FLAGS ONLY
-#define FLAG_ADMIN 0x0001
-#define FLAG_IGNORE 0x0002
-#define FLAG_PLAYING 0x0004
+#define FLAG_ADMIN     0x00000001
+#define FLAG_IGNORE    0x00000002
+#define FLAG_PLAYING   0x00000004
 
 // PLAYER FLAGS ONLY
-#define FLAG_MASTER            0x0001
-#define FLAG_ALIVE             0x0002
-#define FLAG_YOURTURN          0x0004
-#define FLAG_WONGAME           0x0008
+#define FLAG_MASTER            0x00000001
+#define FLAG_ALIVE             0x00000002
+#define FLAG_YOURTURN          0x00000004
+#define FLAG_WONGAME           0x00000008
 
 // Config File flags
-#define CFLAG_LISTENONCF               0x0001
-#define CFLAG_USEPRIVMSG               0x0002
-#define CFLAG_BOPER                    0x0004
+#define CFLAG_LISTENONCF               0x00000001
+#define CFLAG_USEPRIVMSG               0x00000002
+#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 setWelcome()                   (configflags |= CFLAG_WELCOME)
+#define clearWelcome()                 (configflags &= ~CFLAG_WELCOME)
+#define isWelcome()                    (configflags & CFLAG_WELCOME)
 
 #define setListenOnCF()                        (configflags |= CFLAG_LISTENONCF)
 #define clearListenOnCF()              (configflags &= ~CFLAG_LISTENONCF)
-#define isListenonCF()                 (configflags & CFLAG_LISTENONCF)
+#define isListenOnCF()                 (configflags & CFLAG_LISTENONCF)
 
 #define setUsePrivmsg()                        (configflags |= CFLAG_USEPRIVMSG)
 #define clearUsePrivmsg()              (configflags &= ~CFLAG_USEPRIVMSG)