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

Comparing ircd-hybrid-8/modules/m_users.c (file contents):
Revision 1219 by michael, Sun Sep 18 09:02:38 2011 UTC vs.
Revision 1230 by michael, Thu Sep 22 19:41:19 2011 UTC

# Line 34 | Line 34
34   #include "parse.h"
35   #include "modules.h"
36  
37 static void m_users(struct Client *, struct Client *, int, char *[]);
38 static void mo_users(struct Client *, struct Client *, int, char *[]);
39
40 struct Message users_msgtab = {
41  "USERS", 0, 0, 0, MAXPARA, MFLG_SLOW, 0,
42  { m_unregistered, m_users, mo_users, m_ignore, mo_users, m_ignore }
43 };
44
45 void
46 _modinit(void)
47 {
48  mod_add_cmd(&users_msgtab);
49 }
50
51 void
52 _moddeinit(void)
53 {
54  mod_del_cmd(&users_msgtab);
55 }
56
57 const char *_version = "$Revision$";
37  
38   /*
39   * m_users
# Line 114 | Line 93 | mo_users(struct Client *client_p, struct
93    sendto_one(source_p, form_str(RPL_GLOBALUSERS), me.name, source_p->name,
94               Count.total, Count.max_tot, Count.total, Count.max_tot);
95   }
96 +
97 + static struct Message users_msgtab = {
98 +  "USERS", 0, 0, 0, MAXPARA, MFLG_SLOW, 0,
99 +  { m_unregistered, m_users, mo_users, m_ignore, mo_users, m_ignore }
100 + };
101 +
102 + static void
103 + module_init(void)
104 + {
105 +  mod_add_cmd(&users_msgtab);
106 + }
107 +
108 + static void
109 + module_exit(void)
110 + {
111 +  mod_del_cmd(&users_msgtab);
112 + }
113 +
114 + struct module module_entry = {
115 +  .node    = { NULL, NULL, NULL },
116 +  .name    = NULL,
117 +  .version = "$Revision$",
118 +  .handle  = NULL,
119 +  .modinit = module_init,
120 +  .modexit = module_exit,
121 +  .flags   = 0
122 + };

Diff Legend

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