]> jfr.im git - solanum.git/blobdiff - extensions/ip_cloaking_old.c
modules: add origin field to V2
[solanum.git] / extensions / ip_cloaking_old.c
index f33ee46b442effd168a8aa1c2e702dcb719a0b15..c0b25ac844f2cdaf6db147aa7d12a5194ffae18e 100644 (file)
@@ -1,4 +1,3 @@
-/* $Id: ip_cloaking_old.c 3522 2007-07-06 07:48:28Z nenolod $ */
 
 #include "stdinc.h"
 #include "modules.h"
@@ -71,7 +70,7 @@ distribute_hostchange(struct Client *client_p, char *newhost)
 static void
 do_host_cloak(const char *inbuf, char *outbuf, int ipmask)
 {
-       int cyc;
+       unsigned int cyc;
        unsigned int hosthash = 1, hosthash2 = 1;
        unsigned int maxcycle = strlen(inbuf);
        int len1;
@@ -93,7 +92,7 @@ do_host_cloak(const char *inbuf, char *outbuf, int ipmask)
 
        if (ipmask == 0)
        {
-               rb_snprintf(outbuf, HOSTLEN, "%s-%X%X",
+               snprintf(outbuf, HOSTLEN, "%s-%X%X",
                        ServerInfo.network_name, hosthash2, hosthash);
                len1 = strlen(outbuf);
                rest = strchr(inbuf, '.');
@@ -105,7 +104,7 @@ do_host_cloak(const char *inbuf, char *outbuf, int ipmask)
                rb_strlcat(outbuf, rest, HOSTLEN);
        }
        else
-               rb_snprintf(outbuf, HOSTLEN, "%X%X.%s",
+               snprintf(outbuf, HOSTLEN, "%X%X.%s",
                        hosthash2, hosthash, ServerInfo.network_name);
 }