]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/flags.h
syncing
[irc/gameservirc.git] / gameserv / flags.h
index afeb5ff4823a0300efc1c968e7355f7ec448730a..4c9557581f3829d7d9ffd90f295174d6fa5b76b8 100644 (file)
@@ -29,6 +29,7 @@
 // aClient FLAGS ONLY
 #define FLAG_ADMIN 0x0001
 #define FLAG_IGNORE 0x0002
+#define FLAG_PLAYING 0x0004
 
 // PLAYER FLAGS ONLY
 #define FLAG_MASTER            0x0001
@@ -51,6 +52,9 @@
 #define clearIgnore(x) ((x)->remFlag(FLAG_IGNORE))
 #define isIgnore(x)    ((x)->getFlags() & FLAG_IGNORE) && !isAdmin(x)
 
+#define setPlaying(x)          ((x)->addFlag(FLAG_PLAYING))
+#define clearPlaying(x)                ((x)->remFlag(FLAG_IGNORE))
+#define FL_is_playing(x)       ((x)->getFlags() & FLAG_PLAYING)
 
 // Player Flags
 #define seenMaster(x)          ((x)->getFlags() & FLAG_MASTER)