forward port Alex Badea's gline patch from 2.10.11
[ircu2.10.12-pk.git] / ircd / s_conf.c
index 714622f1ebf8f612b05449bf939065ec585f5187..63e5bfe26876cf093e632a8c1a599da88555f3d1 100644 (file)
@@ -1211,15 +1211,13 @@ int find_kill(struct Client *cptr)
         send_reply(cptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%s.", deny->message);
     }
   }
-  else if ((agline = gline_lookup(cptr, 0)) && GlineIsActive(agline)) {
+  else if ((agline = gline_lookup(cptr, 0))) {
     /*
      * find active glines
      * added a check against the user's IP address to find_gline() -Kev
      */
     send_reply(cptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%s.", GlineReason(agline));
   }
-  else
-    agline = 0;          /* if a gline was found, it was inactive */
 
   if (deny)
     return -1;