]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_whowas.c
Removal of ancient SVN ID's part one
[irc/rqf/shadowircd.git] / modules / m_whowas.c
index ecb477086710e8b61c2dfb10fb57b0066d11bf7b..37861a57a832c924cfddf868f334ca23cf2ebcad 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_whowas.c 1717 2006-07-04 14:41:11Z jilles $
  */
 
 #include "stdinc.h"
@@ -29,7 +28,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"
@@ -53,7 +52,6 @@ DECLARE_MODULE_AV1(whowas, NULL, NULL, whowas_clist, NULL, NULL, "$Revision: 171
 
 /*
 ** m_whowas
-**      parv[0] = sender prefix
 **      parv[1] = nickname queried
 */
 static int
@@ -64,12 +62,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 +77,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 +117,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++;
                }