Author: Perry Lorier <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / s_bsd.c
index d71037bfe5176fcb288fc34a3bd77733fd7d7574..b7d7b46d286293d11d04dac2ff4e9d30d20ed53a 100644 (file)
@@ -581,11 +581,11 @@ void add_connection(struct Listener* listener, int fd)
   if (!IPcheck_local_connect(addr.sin_addr, &next_target) && !listener->server) {
 #ifdef IPCHECKDEBUG     
    char buff[512];
-   snprintf(buff,"\n%s [%i connections active]\n",
-       throttle_message,
-       IPcheck_nr(addr.sin_addr));
+   snprintf(buff,512,"\n\rNOTICE * :IPCheck=%i connections active\n\r%s",
+       IPcheck_nr(cptr),
+       throttle_message);
    buff[511]=0;
-   send(fd,buff,strlen(buff));
+   send(fd,buff,strlen(buff),0);
 #else
     /*
      * strlen(throttle_message) == 66