Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / s_conf.c
index ab575d3526d3a2edee0f7378b874016e83820af3..a7013ebec184160cde56adee8f35a1c40eb5f555 100644 (file)
@@ -1445,9 +1445,9 @@ int find_kill(struct Client *cptr)
 
   /* find active glines */
   /* added a check against the user's IP address to find_gline() -Kev */
-  else if ((agline = find_gline(cptr, NULL)) && GlineIsActive(agline))
+  else if ((agline = gline_find(cptr, 0)) && GlineIsActive(agline))
     sendto_one(cptr, ":%s %d %s :%s.", me.name, ERR_YOUREBANNEDCREEP,
-        cptr->name, agline->reason);
+              cptr->name, GlineReason(agline));
   else
     agline = NULL;                /* if a gline was found, it was inactive */