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

Comparing ircd-hybrid-8/modules/m_topic.c (file contents):
Revision 1203 by michael, Tue Aug 23 20:06:08 2011 UTC vs.
Revision 1230 by michael, Thu Sep 22 19:41:19 2011 UTC

# Line 41 | Line 41
41   #include "modules.h"
42   #include "packet.h"
43  
44 static void m_topic(struct Client *, struct Client *, int, char *[]);
45
46 struct Message topic_msgtab = {
47  "TOPIC", 0, 0, 2, MAXPARA, MFLG_SLOW, 0,
48  {m_unregistered, m_topic, m_topic, m_ignore, m_topic, m_ignore}
49 };
50
51 void
52 _modinit(void)
53 {
54  mod_add_cmd(&topic_msgtab);
55 }
56
57 void
58 _moddeinit(void)
59 {
60  mod_del_cmd(&topic_msgtab);
61 }
62
63 const char *_version = "$Revision$";
44  
45   /* m_topic()
46   *  parv[0] = sender prefix
# Line 165 | Line 145 | m_topic(struct Client *client_p, struct
145                   from, to, chptr->chname);
146    }
147   }
148 +
149 + static struct Message topic_msgtab = {
150 +  "TOPIC", 0, 0, 2, MAXPARA, MFLG_SLOW, 0,
151 +  {m_unregistered, m_topic, m_topic, m_ignore, m_topic, m_ignore}
152 + };
153 +
154 + static void
155 + module_init(void)
156 + {
157 +  mod_add_cmd(&topic_msgtab);
158 + }
159 +
160 + static void
161 + module_exit(void)
162 + {
163 +  mod_del_cmd(&topic_msgtab);
164 + }
165 +
166 + struct module module_entry = {
167 +  .node    = { NULL, NULL, NULL },
168 +  .name    = NULL,
169 +  .version = "$Revision$",
170 +  .handle  = NULL,
171 +  .modinit = module_init,
172 +  .modexit = module_exit,
173 +  .flags   = 0
174 + };

Diff Legend

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