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

Comparing:
ircd-hybrid-7.3/modules/m_accept.c (file contents), Revision 1121 by michael, Sun Jan 9 11:03:03 2011 UTC vs.
ircd-hybrid/trunk/modules/m_accept.c (file contents), Revision 1666 by michael, Sun Nov 18 17:03:18 2012 UTC

# Line 25 | Line 25
25   */
26  
27   #include "stdinc.h"
28 – #include "handlers.h"
28   #include "client.h"
29   #include "irc_string.h"
30   #include "sprintf_irc.h"
31   #include "ircd.h"
32   #include "list.h"
33   #include "numeric.h"
34 < #include "s_conf.h"
34 > #include "conf.h"
35   #include "s_serv.h"
36   #include "send.h"
38 – #include "msg.h"
37   #include "parse.h"
38   #include "modules.h"
39 <
42 < static void m_accept(struct Client *, struct Client *, int, char *[]);
43 <
44 < struct Message accept_msgtab = {
45 <  "ACCEPT", 0, 0, 0, 0, MFLG_SLOW, 0,
46 <  { m_unregistered, m_accept, m_ignore, m_ignore, m_accept, m_ignore }
47 < };
48 <
49 < void
50 < _modinit(void)
51 < {
52 <  mod_add_cmd(&accept_msgtab);
53 < }
54 <
55 < void
56 < _moddeinit(void)
57 < {
58 <  mod_del_cmd(&accept_msgtab);
59 < }
60 <
61 < const char *_version = "$Revision$";
39 > #include "memory.h"
40  
41  
42   /*! \brief Creates and sends a list of nick!user\@host masks a Client
# Line 118 | Line 96 | add_accept(const struct split_nuh_item *
96   {
97    struct split_nuh_item *accept_p = MyMalloc(sizeof(*accept_p));
98  
99 <  DupString(accept_p->nickptr, nuh->nickptr);
100 <  DupString(accept_p->userptr, nuh->userptr);
101 <  DupString(accept_p->hostptr, nuh->hostptr);
99 >  accept_p->nickptr = xstrdup(nuh->nickptr);
100 >  accept_p->userptr = xstrdup(nuh->userptr);
101 >  accept_p->hostptr = xstrdup(nuh->hostptr);
102  
103    dlinkAdd(accept_p, &accept_p->node, &source_p->localClient->acceptlist);
104  
# Line 215 | Line 193 | m_accept(struct Client *client_p, struct
193      }
194    }
195   }
196 +
197 + static struct Message accept_msgtab = {
198 +  "ACCEPT", 0, 0, 0, MAXPARA, MFLG_SLOW, 0,
199 +  { m_unregistered, m_accept, m_ignore, m_ignore, m_accept, m_ignore }
200 + };
201 +
202 + static void
203 + module_init(void)
204 + {
205 +  mod_add_cmd(&accept_msgtab);
206 + }
207 +
208 + static void
209 + module_exit(void)
210 + {
211 +  mod_del_cmd(&accept_msgtab);
212 + }
213 +
214 + struct module module_entry = {
215 +  .node    = { NULL, NULL, NULL },
216 +  .name    = NULL,
217 +  .version = "$Revision$",
218 +  .handle  = NULL,
219 +  .modinit = module_init,
220 +  .modexit = module_exit,
221 +  .flags   = 0
222 + };

Diff Legend

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