X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..3e6a6891a1f6c2eee8390b1663bfdf7cf1c5f441:/modules/m_whowas.c diff --git a/modules/m_whowas.c b/modules/m_whowas.c index ecb4770..5ad67df 100644 --- a/modules/m_whowas.c +++ b/modules/m_whowas.c @@ -29,7 +29,7 @@ #include "client.h" #include "common.h" #include "hash.h" -#include "irc_string.h" +#include "match.h" #include "ircd.h" #include "ircd_defs.h" #include "numeric.h" @@ -64,12 +64,13 @@ m_whowas(struct Client *client_p, struct Client *source_p, int parc, const char int max = -1, found = 0; char *p; const char *nick; + char tbuf[26]; static time_t last_used = 0L; if(!IsOper(source_p)) { - if((last_used + ConfigFileEntry.pace_wait_simple) > CurrentTime) + if((last_used + ConfigFileEntry.pace_wait_simple) > rb_current_time()) { sendto_one(source_p, form_str(RPL_LOAD2HI), me.name, source_p->name, "WHOWAS"); @@ -78,7 +79,7 @@ m_whowas(struct Client *client_p, struct Client *source_p, int parc, const char return 0; } else - last_used = CurrentTime; + last_used = rb_current_time(); } @@ -118,7 +119,7 @@ m_whowas(struct Client *client_p, struct Client *source_p, int parc, const char sendto_one_numeric(source_p, RPL_WHOISSERVER, form_str(RPL_WHOISSERVER), temp->name, temp->servername, - myctime(temp->logoff)); + rb_ctime(temp->logoff, tbuf, sizeof(tbuf))); cur++; found++; }