]> jfr.im git - irc/quakenet/newserv.git/blobdiff - glines/glines_util.c
Rename trusts_cidr2str to CIDRtostr() and move it to lib/irc_ipv6.c.
[irc/quakenet/newserv.git] / glines / glines_util.c
index da34935e28216bbc8b1a93458a930262d0bf7078..160e5b2cfa8f40a1faef10888eb7b4da14df6e17 100644 (file)
@@ -7,7 +7,7 @@ int glinebyip(const char *user, struct irc_in_addr *ip, unsigned char bits, int
   int hits;
 
   glinebufinit(&gbuf, 0);
-  glinebufcommentf(&gbuf, "on IP mask %s@%s, set by %s", user, trusts_cidr2str(ip, bits), creator);
+  glinebufcommentf(&gbuf, "on IP mask %s@%s, set by %s", user, CIDRtostr(*ip, bits), creator);
   glinebufaddbyip(&gbuf, user, ip, bits, flags, creator, reason, getnettime() + duration, getnettime(), getnettime() + duration);
 
   glinebufcounthits(&gbuf, &hits, NULL);