]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Always do hit test because we need to number of hits for the controlwall.
authorGunnar Beutner <redacted>
Sat, 13 Jul 2013 16:16:21 +0000 (18:16 +0200)
committerGunnar Beutner <redacted>
Sat, 13 Jul 2013 16:16:21 +0000 (18:16 +0200)
--HG--
branch : shroudtrusts

glines/glines_commands.c

index 1f64a39dfdb7dfbd78b90b1952aa57148760ce5d..173552b7a067d332ffc1ccca5276525b2391982e 100644 (file)
@@ -153,9 +153,9 @@ static int glines_cmdgline(void *source, int cargc, char **cargv) {
     return CMD_ERROR;
   }
 
-  if (operlimit) {
-    glinebufcounthits(&gbuf, &users, &channels);
-  
+  glinebufcounthits(&gbuf, &users, &channels);
+
+  if (operlimit) {  
     if (channels > MAXUSERGLINECHANNELHITS) {
       glinebufabandon(&gbuf);
       controlreply(sender, "G-Line on '%s' would hit %d channels. Limit is %d. Not setting G-Line.", mask, channels, MAXUSERGLINECHANNELHITS);