va_end(va);
if (cp) {
- sendmessagetochannel(trojanscan_nick, cp, buf);
+ sendmessagetochannel(trojanscan_nick, cp, "%s", buf);
} else {
- sendmessagetouser(trojanscan_nick, np, buf);
+ sendmessagetouser(trojanscan_nick, np, "%s", buf);
}
}
nick *np = NULL; /* sigh at warnings */
if(hostmode)
- for (j=0;j<NICKHASHSIZE;j++)
- for (np=nicktable[j];np;np=np->next)
- if (np->ipnode==sender->ipnode)
- usercount++;
+ usercount = sender->ipnode->usercount;
if(usercount > TROJANSCAN_MAX_HOST_GLINE) {
hostmode = 0;
usercount = 0;
}
+ /* should really go through the ipnode I guess */
if(!hostmode)
for (j=0;j<NICKHASHSIZE;j++)
for (np=nicktable[j];np;np=np->next)