Author: Bleep <tomh@inxpress.net>
[ircu2.10.12-pk.git] / ircd / gline.c
index 12881b4a0dae908d6ddf7983cb41895bf0f800d3..4e5245dc6d96f7281a28358dc24ffd27d22f14ed 100644 (file)
@@ -237,9 +237,8 @@ void add_gline(struct Client *sptr, int ip_mask, char *host, char *comment,
       /*
        * whee!! :)
        */
-      if (!acptr->user || strlen(acptr->sockhost) > (size_t)HOSTLEN ||
-          (acptr->user->username ? strlen(acptr->user->username) : 0) >
-          (size_t)HOSTLEN)
+      if (!acptr->user || strlen(acptr->sockhost) > HOSTLEN ||
+          (acptr->user->username ? strlen(acptr->user->username) : 0) > HOSTLEN)
         continue;               /* these tests right out of
                                    find_kill for safety's sake */
 #endif