]> jfr.im git - solanum.git/blobdiff - modules/m_certfp.c
add separate priv (oper:message) for walking over CALLERID (umode +g) (#152)
[solanum.git] / modules / m_certfp.c
index 1175489f126b5ff6b3a851ee5a04e6b8b202ef7f..f6dc003af534e543763645d5db300689c7891f1f 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "stdinc.h"
 #include "client.h"
-#include "common.h"
 #include "match.h"
 #include "hash.h"
 #include "ircd.h"
 #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,24 +49,20 @@ struct Message certfp_msgtab = {
 
 mapi_clist_av1 certfp_clist[] = { &certfp_msgtab, NULL };
 
-static const char certfp_desc[] =
-       "Provides the CERTFP facility used by servers to set certificate fingerprints";
-
 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;
 }