]> jfr.im git - solanum.git/blobdiff - include/client.h
Add ratelimit for high-bandwidth commands.
[solanum.git] / include / client.h
index 47725750e5b6a590262e4455bfdd68a9c4f75437..62d3fa0fab17feb3594eda606b873dac5bb02b68 100644 (file)
@@ -268,6 +268,10 @@ struct LocalUser
        unsigned int targets_free;      /* free targets */
        time_t target_last;             /* last time we cleared a slot */
 
+       /* ratelimit items */
+       time_t ratelimit;
+       unsigned int join_who_credits;
+
        struct ListClient *safelist_data;
 
        char *mangledhost; /* non-NULL if host mangling module loaded and