]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/client.h
Add umode +C, which blocks CTCPs to anyone with it set.
[irc/rqf/shadowircd.git] / include / client.h
index 4a28a3079c959fc21372b623d3f95e3a99daab40..dbd6910ff4b3fb75ffd2af19c945623fbf65b2fa 100644 (file)
@@ -421,6 +421,7 @@ struct ListClient
 #define UMODE_DEAF        0x0080
 #define UMODE_NOFORWARD    0x0100      /* don't forward */
 #define UMODE_REGONLYMSG   0x0200      /* only allow logged in users to msg */
+#define UMODE_NOCTCP   0x0400          /* block CTCPs except for ACTION */
 
 /* user information flags, only settable by remote mode or local oper */
 #define UMODE_OPER         0x1000      /* Operator */
@@ -514,6 +515,7 @@ struct ListClient
 #define IsDeaf(x)              ((x)->umodes & UMODE_DEAF)
 #define IsNoForward(x)         ((x)->umodes & UMODE_NOFORWARD)
 #define IsSetRegOnlyMsg(x)     ((x)->umodes & UMODE_REGONLYMSG)
+#define IsSetNoCTCP(x)         ((x)->umodes & UMODE_NOCTCP)
 
 #define SetGotId(x)             ((x)->flags |= FLAGS_GOTID)
 #define IsGotId(x)              (((x)->flags & FLAGS_GOTID) != 0)