-/* $Id: ip_cloaking.c 3524 2007-07-06 07:54:54Z nenolod $ */
+/* $Id: ip_cloaking.c 3526 2007-07-06 07:56:14Z nenolod $ */
#include "stdinc.h"
#include "modules.h"
#include "s_conf.h"
#include "s_user.h"
#include "s_serv.h"
-#include "tools.h"
#include "numeric.h"
/* if you're modifying this module, you'll probably to change this */
};
DECLARE_MODULE_AV1(ip_cloaking, _modinit, _moddeinit, NULL, NULL,
- ip_cloaking_hfnlist, "$Revision: 3524 $");
+ ip_cloaking_hfnlist, "$Revision: 3526 $");
static void
distribute_hostchange(struct Client *client)
tptr = strrchr(buf, '.');
if (tptr == NULL)
+ {
+ strncpy(outbuf, inbuf, HOSTLEN);
return;
+ }
*tptr++ = '\0';
source_p->umodes &= ~user_modes['h'];
return;
}
- source_p->localClient->mangledhost = MyMalloc(HOSTLEN);
+ source_p->localClient->mangledhost = rb_malloc(HOSTLEN);
if (!irccmp(source_p->orighost, source_p->sockhost))
do_host_cloak_ip(source_p->orighost, source_p->localClient->mangledhost);
else