]> jfr.im git - irc/quakenet/newserv.git/blobdiff - bans/bans.h
CHANSERV: tell user when they can't attempts to auth any more, and drop max attempts...
[irc/quakenet/newserv.git] / bans / bans.h
index 1336e60e2450321174dcfe298e22f28bbb85a1dc..3ae1ff1a5af1030e29ba87d5f0e9a66e0d47c1b4 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "../lib/flags.h"
 #include "../lib/sstring.h"
+#include "../lib/irc_ipv6.h"
 #include <time.h>
 
 #define CHANBAN_NICKEXACT   0x0001  /* Ban includes an exact nick (no wildcards) */
@@ -29,8 +30,8 @@ typedef struct chanban {
   sstring        *user;
   sstring        *host;
   time_t          timeset;
-  unsigned int    ipaddr;
-  unsigned int   mask;
+  struct irc_in_addr ipaddr;
+  unsigned char   prefixlen;
   struct chanban *next;
 } chanban;