ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_lusers.c
(Generate patch)

Comparing:
ircd-hybrid-7.2/modules/m_lusers.c (file contents), Revision 34 by lusky, Sun Oct 2 21:05:51 2005 UTC vs.
ircd-hybrid-8/modules/m_lusers.c (file contents), Revision 1178 by michael, Mon Aug 15 08:11:31 2011 UTC

# Line 35 | Line 35
35   #include "parse.h"
36   #include "modules.h"
37  
38 < /* XXX LazyLinks ? */
39 <
40 < static void m_lusers(struct Client*, struct Client*, int, char**);
41 < static void ms_lusers(struct Client*, struct Client*, int, char**);
38 > static void m_lusers(struct Client *, struct Client *, int, char *[]);
39 > static void ms_lusers(struct Client *, struct Client *, int, char *[]);
40  
41   struct Message lusers_msgtab = {
42 <  "LUSERS", 0, 0, 0, 0, MFLG_SLOW, 0,
42 >  "LUSERS", 0, 0, 0, MAXPARA, MFLG_SLOW, 0,
43    {m_unregistered, m_lusers, ms_lusers, m_ignore, ms_lusers, m_ignore}
44   };
47 – #ifndef STATIC_MODULES
45  
46   void
47   _modinit(void)
# Line 59 | Line 56 | _moddeinit(void)
56   }
57  
58   const char *_version = "$Revision$";
59 < #endif
59 >
60   /* m_lusers - LUSERS message handler
61   * parv[0] = sender
62   * parv[1] = host/server mask.
# Line 72 | Line 69 | const char *_version = "$Revision$";
69   */
70   static void
71   m_lusers(struct Client *client_p, struct Client *source_p,
72 <         int parc, char *parv[])
72 >         int parc, char *parv[])
73   {
74    static time_t last_used = 0;
75  
76 <  if ((last_used + ConfigFileEntry.pace_wait) > CurrentTime)
76 >  if ((last_used + ConfigFileEntry.pace_wait_simple) > CurrentTime)
77    {
78      /* safe enough to give this on a local connect only */
79 <    if (MyClient(source_p))
83 <      sendto_one(source_p, form_str(RPL_LOAD2HI), me.name, parv[0]);
79 >    sendto_one(source_p, form_str(RPL_LOAD2HI), me.name, parv[0]);
80      return;
81    }
82 <  else
83 <    last_used = CurrentTime;
82 >
83 >  last_used = CurrentTime;
84  
85    if (parc > 2 && !ConfigFileEntry.disable_remote)
86 <  {  
87 <    if (hunt_server(client_p, source_p, ":%s LUSERS %s :%s", 2, parc, parv) != HUNTED_ISME)
86 >    if (hunt_server(client_p, source_p, ":%s LUSERS %s :%s", 2,
87 >                    parc, parv) != HUNTED_ISME)
88        return;
93 –  }
89  
90    show_lusers(source_p);
91   }
# Line 102 | Line 97 | m_lusers(struct Client *client_p, struct
97   */
98   static void
99   ms_lusers(struct Client *client_p, struct Client *source_p,
100 <          int parc, char *parv[])
100 >          int parc, char *parv[])
101   {
102    if (parc > 2)
103 <  {
104 <    if(hunt_server(client_p, source_p, ":%s LUSERS %s :%s", 2, parc, parv)
110 <     != HUNTED_ISME)
103 >    if (hunt_server(client_p, source_p, ":%s LUSERS %s :%s", 2,
104 >                    parc, parv) != HUNTED_ISME)
105          return;
112 –  }
106  
107 <  if(IsClient(source_p))
107 >  if (IsClient(source_p))
108      show_lusers(source_p);
109   }

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)