#include "../core/hooks.h"
+#include "../irc/irc.h"
#include "trusts.h"
static void __counthandler(int hooknum, void *arg);
void *arg[2];
struct irc_in_addr ipaddress;
- ip_canonicalize_tunnel(&ipaddress, &sender->p_ipaddr);
+ ip_canonicalize_tunnel(&ipaddress, &sender->ipaddress);
th = th_getbyhost(&ipaddress);
} else {
setnextbytrust(sender, th->users);
th->users = sender;
- setipnodebits(sender, th->nodebits);
}
arg[0] = sender;
}
static void __counthandler(int hooknum, void *arg) {
- time_t t = time(NULL);
+ time_t t = getnettime();
void **args = arg;
trusthost *th = gettrusthost((nick *)args[0]);
trustgroup *tg;