]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_who.c
Do not send snotes/logs about juped servers trying to connect.
[irc/rqf/shadowircd.git] / modules / m_who.c
index 311045c0e92dd0e65034c87d14b3b43dcc1a82aa..b0b76f56d5b13452729e22ff4cd714e8c7a30e6b 100644 (file)
@@ -24,7 +24,6 @@
  *  $Id: m_who.c 3350 2007-04-02 22:03:08Z jilles $
  */
 #include "stdinc.h"
-#include "tools.h"
 #include "common.h"
 #include "client.h"
 #include "channel.h"
 #include "numeric.h"
 #include "s_serv.h"
 #include "send.h"
-#include "irc_string.h"
-#include "sprintf_irc.h"
+#include "match.h"
 #include "s_conf.h"
-#include "s_log.h"
+#include "logger.h"
 #include "msg.h"
 #include "parse.h"
 #include "modules.h"
@@ -177,7 +175,7 @@ m_who(struct Client *client_p, struct Client *source_p, int parc, const char *pa
        /* it has to be a global who at this point, limit it */
        if(!IsOper(source_p))
        {
-               if((last_used + ConfigFileEntry.pace_wait) > CurrentTime)
+               if((last_used + ConfigFileEntry.pace_wait) > rb_current_time())
                {
                        sendto_one(source_p, form_str(RPL_LOAD2HI),
                                        me.name, source_p->name, "WHO");
@@ -186,7 +184,7 @@ m_who(struct Client *client_p, struct Client *source_p, int parc, const char *pa
                        return 0;
                }
                else
-                       last_used = CurrentTime;
+                       last_used = rb_current_time();
        }
 
        /* Note: operspy_dont_care_user_info does not apply to
@@ -379,7 +377,7 @@ do_who(struct Client *source_p, struct Client *target_p, const char *chname, con
 {
        char status[5];
 
-       ircsprintf(status, "%c%s%s",
+       rb_sprintf(status, "%c%s%s",
                   target_p->user->away ? 'G' : 'H', IsOper(target_p) ? "*" : "", op_flags);
 
        sendto_one(source_p, form_str(RPL_WHOREPLY), me.name, source_p->name,