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

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

# Line 35 | Line 35
35   #include "modules.h"
36   #include "s_serv.h"
37  
38 static void mo_operwall(struct Client *, struct Client *, int, char *[]);
39 static void ms_operwall(struct Client *, struct Client *, int, char *[]);
40 static void me_operwall(struct Client *, struct Client *, int, char *[]);
41
42 struct Message operwall_msgtab = {
43  "OPERWALL", 0, 0, 2, MAXPARA, MFLG_SLOW, 0,
44  {m_unregistered, m_not_oper, ms_operwall, me_operwall, mo_operwall, m_ignore}
45 };
46
47 void
48 _modinit(void)
49 {
50  mod_add_cmd(&operwall_msgtab);
51 }
52
53 void
54 _moddeinit(void)
55 {
56  mod_del_cmd(&operwall_msgtab);
57 }
58
59 const char *_version = "$Revision$";
60
38  
39   /*
40   * mo_operwall - OPERWALL message handler
# Line 133 | Line 110 | me_operwall(struct Client *client_p, str
110  
111    sendto_wallops_flags(UMODE_OPERWALL, source_p, "OPERWALL - %s", message);
112   }
113 +
114 + static struct Message operwall_msgtab = {
115 +  "OPERWALL", 0, 0, 2, MAXPARA, MFLG_SLOW, 0,
116 +  {m_unregistered, m_not_oper, ms_operwall, me_operwall, mo_operwall, m_ignore}
117 + };
118 +
119 + static void
120 + module_init(void)
121 + {
122 +  mod_add_cmd(&operwall_msgtab);
123 + }
124 +
125 + static void
126 + module_exit(void)
127 + {
128 +  mod_del_cmd(&operwall_msgtab);
129 + }
130 +
131 + struct module module_entry = {
132 +  .node    = { NULL, NULL, NULL },
133 +  .name    = NULL,
134 +  .version = "$Revision$",
135 +  .handle  = NULL,
136 +  .modinit = module_init,
137 +  .modexit = module_exit,
138 +  .flags   = 0
139 + };

Diff Legend

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