]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/class.c
Do not allow a topic change if a user may not send to the channel
[irc/rqf/shadowircd.git] / src / class.c
index f3a60e8f01218b7229910dba9ab4c22356ac5d85..3b55fffa14f6f3c1a561ed00aa800bd5ee4d9d10 100644 (file)
@@ -35,7 +35,7 @@
 #include "s_conf.h"
 #include "s_newconf.h"
 #include "send.h"
-#include "irc_string.h"
+#include "match.h"
 
 #define BAD_CONF_CLASS          -1
 #define BAD_PING                -2
@@ -199,7 +199,8 @@ add_class(struct Class *classptr)
                PingFreq(tmpptr) = PingFreq(classptr);
                MaxSendq(tmpptr) = MaxSendq(classptr);
                ConFreq(tmpptr) = ConFreq(classptr);
-               CidrBitlen(tmpptr) = CidrBitlen(classptr);
+               CidrIpv4Bitlen(tmpptr) = CidrIpv4Bitlen(classptr);
+               CidrIpv6Bitlen(tmpptr) = CidrIpv6Bitlen(classptr);
                CidrAmount(tmpptr) = CidrAmount(classptr);
 
                free_class(classptr);