]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/client.h
target change: Allow free replies.
[irc/rqf/shadowircd.git] / include / client.h
index 4920fb6b9be7ec3e285d84d8823e9841598a00a1..4a28a3079c959fc21372b623d3f95e3a99daab40 100644 (file)
@@ -54,6 +54,7 @@ struct Blacklist;
 #define IDLEN          10
 
 #define TGCHANGE_NUM           10      /* how many targets we keep track of */
+#define TGCHANGE_REPLY         5       /* how many reply targets */
 #define TGCHANGE_INITIAL       10      /* initial free targets (normal) */
 #define TGCHANGE_INITIAL_LOW   4       /* initial free targets (possible spambot) */
 
@@ -259,7 +260,11 @@ struct LocalUser
        struct AuthRequest *auth_request;
 
        /* target change stuff */
-       uint32_t targets[TGCHANGE_NUM]; /* targets were aware of (fnv32(use_id(target_p))) */
+       /* targets we're aware of (fnv32(use_id(target_p))):
+        * 0..TGCHANGE_NUM-1 regular slots
+        * TGCHANGE_NUM..TGCHANGE_NUM+TGCHANGE_REPLY-1 reply slots
+        */
+       uint32_t targets[TGCHANGE_NUM + TGCHANGE_REPLY];
        unsigned int targets_free;      /* free targets */
        time_t target_last;             /* last time we cleared a slot */