X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/d8027cae3eae4bf4ac44f0c184861a561979251d..03d18a46b12cab6358d58033569ab2302ad9a543:/src/whowas.c diff --git a/src/whowas.c b/src/whowas.c index cd615c1..4e31df7 100644 --- a/src/whowas.c +++ b/src/whowas.c @@ -38,7 +38,6 @@ #include "s_user.h" #include "send.h" #include "s_conf.h" -#include "memory.h" #include "scache.h" /* internally defined function */ @@ -73,7 +72,7 @@ void add_history(struct Client *client_p, int online) del_whowas_from_list(&WHOWASHASH[who->hashv], who); } who->hashv = hash_whowas_name(client_p->name); - who->logoff = CurrentTime; + who->logoff = rb_current_time(); /* * NOTE: strcpy ok here, the sizes in the client struct MUST * match the sizes in the whowas struct @@ -119,7 +118,7 @@ struct Client *get_history(const char *nick, time_t timelimit) struct Whowas *temp; int blah; - timelimit = CurrentTime - timelimit; + timelimit = rb_current_time() - timelimit; blah = hash_whowas_name(nick); temp = WHOWASHASH[blah]; for (; temp; temp = temp->next)