]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/flags.h
Added a new version of the logout command, and made welcomemsg config file directive...
[irc/gameservirc.git] / gameserv / flags.h
index c2a2ba123f25999e92174736fe0c27e7d935c594..c2b1f419c5b342080ea3720cb22acfed1b4fb536 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 setWelcome()                   (configflags |= CFLAG_WELCOME)
+#define clearWelcome()                 (configflags &= ~CFLAG_WELCOME)
+#define isWelcome()                    (configflags & CFLAG_WELCOME)
 
 #define setListenOnCF()                        (configflags |= CFLAG_LISTENONCF)
 #define clearListenOnCF()              (configflags &= ~CFLAG_LISTENONCF)