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-8/modules/m_lusers.c (file contents):
Revision 1178 by michael, Mon Aug 15 08:11:31 2011 UTC vs.
Revision 1230 by michael, Thu Sep 22 19:41:19 2011 UTC

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

Diff Legend

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