]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/whowas.c
Clarify connection setup.
[irc/rqf/shadowircd.git] / src / whowas.c
index 1f7cd75a22e10f961a745dce3842f34a3748501d..9d910a01da7e1d09947c603d793d5955962b38b8 100644 (file)
@@ -30,7 +30,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"
@@ -72,12 +72,12 @@ 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
         */
-       strlcpy(who->name, client_p->name, sizeof(who->name));
+       rb_strlcpy(who->name, client_p->name, sizeof(who->name));
        strcpy(who->username, client_p->username);
        strcpy(who->hostname, client_p->host);
        strcpy(who->realname, client_p->info);
@@ -118,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)