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

Comparing:
ircd-hybrid-7.3/modules/m_wallops.c (file contents), Revision 1029 by michael, Sun Nov 8 13:10:50 2009 UTC vs.
ircd-hybrid-8/modules/m_wallops.c (file contents), Revision 1230 by michael, Thu Sep 22 19:41:19 2011 UTC

# Line 36 | Line 36
36   #include "modules.h"
37   #include "s_serv.h"
38  
39 – static void ms_wallops(struct Client *, struct Client *, int, char **);
40 – static void mo_wallops(struct Client *, struct Client *, int, char **);
41 –
42 – struct Message wallops_msgtab = {
43 –  "WALLOPS", 0, 0, 2, 0, MFLG_SLOW, 0,
44 –  {m_unregistered, m_not_oper, ms_wallops, m_ignore, mo_wallops, m_ignore}
45 – };
46 –
47 – #ifndef STATIC_MODULES
48 – void
49 – _modinit(void)
50 – {
51 –  mod_add_cmd(&wallops_msgtab);
52 – }
53 –
54 – void
55 – _moddeinit(void)
56 – {
57 –  mod_del_cmd(&wallops_msgtab);
58 – }
59 –
60 – const char *_version = "$Revision$";
61 – #endif
39  
40   /*
41   * mo_wallops (write to *all* opers currently online)
# Line 110 | Line 87 | ms_wallops(struct Client *client_p, stru
87                  ":%s WALLOPS :%s", source_p->name, message);
88   }
89  
90 + static struct Message wallops_msgtab = {
91 +  "WALLOPS", 0, 0, 2, MAXPARA, MFLG_SLOW, 0,
92 +  {m_unregistered, m_not_oper, ms_wallops, m_ignore, mo_wallops, m_ignore}
93 + };
94 +
95 + static void
96 + module_init(void)
97 + {
98 +  mod_add_cmd(&wallops_msgtab);
99 + }
100 +
101 + static void
102 + module_exit(void)
103 + {
104 +  mod_del_cmd(&wallops_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)