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

Comparing ircd-hybrid-8/modules/m_rehash.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 38 | Line 38
38   #include "parse.h"
39   #include "modules.h"
40  
41 static void mo_rehash(struct Client *, struct Client *, int, char *[]);
42
43 struct Message rehash_msgtab = {
44  "REHASH", 0, 0, 0, MAXPARA, MFLG_SLOW, 0,
45  {m_unregistered, m_not_oper, m_ignore, m_ignore, mo_rehash, m_ignore}
46 };
47
48 void
49 _modinit(void)
50 {
51  mod_add_cmd(&rehash_msgtab);
52 }
53
54 void
55 _moddeinit(void)
56 {
57  mod_del_cmd(&rehash_msgtab);
58 }
59
60 const char *_version = "$Revision$";
41  
42   /*
43   * mo_rehash - REHASH message handler
# Line 138 | Line 118 | mo_rehash(struct Client *client_p, struc
118      rehash(0);
119    }
120   }
121 +
122 + static struct Message rehash_msgtab = {
123 +  "REHASH", 0, 0, 0, MAXPARA, MFLG_SLOW, 0,
124 +  {m_unregistered, m_not_oper, m_ignore, m_ignore, mo_rehash, m_ignore}
125 + };
126 +
127 + static void
128 + module_init(void)
129 + {
130 +  mod_add_cmd(&rehash_msgtab);
131 + }
132 +
133 + static void
134 + module_exit(void)
135 + {
136 +  mod_del_cmd(&rehash_msgtab);
137 + }
138 +
139 + struct module module_entry = {
140 +  .node    = { NULL, NULL, NULL },
141 +  .name    = NULL,
142 +  .version = "$Revision$",
143 +  .handle  = NULL,
144 +  .modinit = module_init,
145 +  .modexit = module_exit,
146 +  .flags   = 0
147 + };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines