charybdis-ircd / charybdis

Scalable IRCv3.2 server for large, community-oriented networks
GNU General Public License v2.0
231 stars 102 forks source link

Make K-line checking more consistent #315

Closed edk0 closed 4 years ago

edk0 commented 4 years ago

Add missing sockhost check in check_one_kline and do the ipv4-in-ipv6 check everywhere we check klines. Also stop comparing ip4s with ip6s and pointlessly parsing the K-line mask for each loop.