]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_lusers.c
Allow /ojoin !#channel/%#channel, if admin/halfop are enabled.
[irc/rqf/shadowircd.git] / modules / m_lusers.c
index f819dbecc8cd87781b920f5acd8b4c88067c32c2..1a3bd355d6c9f367669e2216c9a9e6a584c63668 100644 (file)
@@ -49,7 +49,6 @@ DECLARE_MODULE_AV1(lusers, NULL, NULL, lusers_clist, NULL, NULL, "$Revision: 254
 
 /*
  * m_lusers - LUSERS message handler
- * parv[0] = sender
  * parv[1] = host/server mask.
  * parv[2] = server to query
  * 
@@ -63,7 +62,7 @@ m_lusers(struct Client *client_p, struct Client *source_p, int parc, const char
 
        if (parc > 2)
        {
-               if((last_used + ConfigFileEntry.pace_wait) > CurrentTime)
+               if((last_used + ConfigFileEntry.pace_wait) > rb_current_time())
                {
                        /* safe enough to give this on a local connect only */
                        sendto_one(source_p, form_str(RPL_LOAD2HI),
@@ -71,7 +70,7 @@ m_lusers(struct Client *client_p, struct Client *source_p, int parc, const char
                        return 0;
                }
                else
-                       last_used = CurrentTime;
+                       last_used = rb_current_time();
 
                if(hunt_server(client_p, source_p, ":%s LUSERS %s :%s", 2, parc, parv) !=
                           HUNTED_ISME)
@@ -85,7 +84,6 @@ m_lusers(struct Client *client_p, struct Client *source_p, int parc, const char
 
 /*
  * ms_lusers - LUSERS message handler for servers and opers
- * parv[0] = sender
  * parv[1] = host/server mask.
  * parv[2] = server to query
  *