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.3/modules/m_lusers.c (file contents), Revision 1029 by michael, Sun Nov 8 13:10:50 2009 UTC vs.
ircd-hybrid-8/modules/m_lusers.c (file contents), Revision 1309 by michael, Sun Mar 25 11:24:18 2012 UTC

# Line 23 | Line 23
23   */
24  
25   #include "stdinc.h"
26 – #include "handlers.h"
26   #include "client.h"
27   #include "ircd.h"
28   #include "numeric.h"
29   #include "s_serv.h"    /* hunt_server */
30   #include "s_user.h"    /* show_lusers */
31   #include "send.h"
32 < #include "s_conf.h"
34 < #include "msg.h"
32 > #include "conf.h"
33   #include "parse.h"
34   #include "modules.h"
35  
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,
43 –  {m_unregistered, m_lusers, ms_lusers, m_ignore, ms_lusers, m_ignore}
44 – };
45 –
46 – #ifndef STATIC_MODULES
47 – void
48 – _modinit(void)
49 – {
50 –  mod_add_cmd(&lusers_msgtab);
51 – }
52 –
53 – void
54 – _moddeinit(void)
55 – {
56 –  mod_del_cmd(&lusers_msgtab);
57 – }
58 –
59 – const char *_version = "$Revision$";
60 – #endif
36  
37   /* m_lusers - LUSERS message handler
38   * parv[0] = sender
# Line 78 | Line 53 | m_lusers(struct Client *client_p, struct
53    if ((last_used + ConfigFileEntry.pace_wait_simple) > CurrentTime)
54    {
55      /* safe enough to give this on a local connect only */
56 <    sendto_one(source_p, form_str(RPL_LOAD2HI), me.name, parv[0]);
56 >    sendto_one(source_p, form_str(RPL_LOAD2HI), me.name, source_p->name);
57      return;
58    }
59  
# Line 109 | Line 84 | ms_lusers(struct Client *client_p, struc
84    if (IsClient(source_p))
85      show_lusers(source_p);
86   }
87 +
88 + static struct Message lusers_msgtab = {
89 +  "LUSERS", 0, 0, 0, MAXPARA, MFLG_SLOW, 0,
90 +  {m_unregistered, m_lusers, ms_lusers, m_ignore, ms_lusers, m_ignore}
91 + };
92 +
93 + static void
94 + module_init(void)
95 + {
96 +  mod_add_cmd(&lusers_msgtab);
97 + }
98 +
99 + static void
100 + module_exit(void)
101 + {
102 +  mod_del_cmd(&lusers_msgtab);
103 + }
104 +
105 + struct module module_entry = {
106 +  .node    = { NULL, NULL, NULL },
107 +  .name    = NULL,
108 +  .version = "$Revision$",
109 +  .handle  = NULL,
110 +  .modinit = module_init,
111 +  .modexit = module_exit,
112 +  .flags   = 0
113 + };

Diff Legend

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