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

Comparing ircd-hybrid/trunk/modules/m_certfp.c (file contents):
Revision 4545 by michael, Fri Aug 22 08:46:13 2014 UTC vs.
Revision 8752 by michael, Tue Jan 1 11:07:01 2019 UTC

# Line 1 | Line 1
1   /*
2   *  ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3   *
4 < *  Copyright (c) 2013-2014 ircd-hybrid development team
4 > *  Copyright (c) 2013-2019 ircd-hybrid development team
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 15 | Line 15
15   *
16   *  You should have received a copy of the GNU General Public License
17   *  along with this program; if not, write to the Free Software
18 < *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
18 > *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19   *  USA
20   */
21  
# Line 27 | Line 27
27   #include "stdinc.h"
28   #include "client.h"
29   #include "ircd.h"
30 #include "server.h"
30   #include "send.h"
31   #include "parse.h"
32   #include "modules.h"
34 #include "irc_string.h"
33   #include "memory.h"
34  
35  
# Line 52 | Line 50 | ms_certfp(struct Client *source_p, int p
50    if (!IsClient(source_p))
51      return 0;
52  
53 <  MyFree(source_p->certfp);
53 >  xfree(source_p->certfp);
54    source_p->certfp = xstrdup(parv[1]);
55  
56 <  sendto_server(source_p, NOCAPS, NOCAPS, ":%s CERTFP %s",
57 <                source_p->id, parv[1]);
56 >  sendto_server(source_p, 0, 0, ":%s CERTFP %s",
57 >                source_p->id, source_p->certfp);
58    return 0;
59   }
60  
61   static struct Message certfp_msgtab =
62   {
63 <  "CERTFP", NULL, 0, 0, 2, MAXPARA, MFLG_SLOW, 0,
64 <  { m_ignore, m_ignore, ms_certfp, m_ignore, m_ignore, m_ignore }
63 >  .cmd = "CERTFP",
64 >  .args_min = 2,
65 >  .args_max = MAXPARA,
66 >  .handlers[UNREGISTERED_HANDLER] = m_ignore,
67 >  .handlers[CLIENT_HANDLER] = m_ignore,
68 >  .handlers[SERVER_HANDLER] = ms_certfp,
69 >  .handlers[ENCAP_HANDLER] = m_ignore,
70 >  .handlers[OPER_HANDLER] = m_ignore
71   };
72  
73   static void
# Line 80 | Line 84 | module_exit(void)
84  
85   struct module module_entry =
86   {
83  .node    = { NULL, NULL, NULL },
84  .name    = NULL,
87    .version = "$Revision$",
86  .handle  = NULL,
88    .modinit = module_init,
89    .modexit = module_exit,
89  .flags   = 0
90   };

Diff Legend

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