X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/105a4985b402b3ab294e3bec1fa75bac75430482..ea41b24fd4807e3565bf5f8f293e2efc4c20b62d:/modules/m_certfp.c diff --git a/modules/m_certfp.c b/modules/m_certfp.c index ab394925..f6dc003a 100644 --- a/modules/m_certfp.c +++ b/modules/m_certfp.c @@ -29,7 +29,6 @@ #include "stdinc.h" #include "client.h" -#include "common.h" #include "match.h" #include "hash.h" #include "ircd.h" @@ -38,7 +37,10 @@ #include "msg.h" #include "modules.h" -static int me_certfp(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char certfp_desc[] = + "Provides the CERTFP facility used by servers to set certificate fingerprints"; + +static void me_certfp(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message certfp_msgtab = { "CERTFP", 0, 0, 0, 0, @@ -47,21 +49,20 @@ struct Message certfp_msgtab = { mapi_clist_av1 certfp_clist[] = { &certfp_msgtab, NULL }; -DECLARE_MODULE_AV2(certfp, NULL, NULL, certfp_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(certfp, NULL, NULL, certfp_clist, NULL, NULL, NULL, NULL, certfp_desc); /* ** me_certfp ** parv[1] = certfp string */ -static int +static void me_certfp(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { if (!IsPerson(source_p)) - return 0; + return; rb_free(source_p->certfp); source_p->certfp = NULL; if (!EmptyString(parv[1])) source_p->certfp = rb_strdup(parv[1]); - return 0; }