]> jfr.im git - irc/quakenet/newserv.git/blobdiff - trusts/events.c
Use getnettime() where appropriate.
[irc/quakenet/newserv.git] / trusts / events.c
index eed30b5aa54e11dc29fdb3e818d4fc16ef3684b6..2f3e56be26eacf00965439f7f1ceb16cc567d2dd 100644 (file)
@@ -1,4 +1,5 @@
 #include "../core/hooks.h"
+#include "../irc/irc.h"
 #include "trusts.h"
 
 static void __counthandler(int hooknum, void *arg);
@@ -71,7 +72,7 @@ static void __lostnick(int hooknum, void *arg) {
 }
 
 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;