]> jfr.im git - solanum.git/blobdiff - modules/m_post.c
Replace RPL_WHOISTEXT(337) with RPL_WHOISSPECIAL(320) (#419)
[solanum.git] / modules / m_post.c
index d3923c4c42050a57b0dcff9d7485253df553b637..4d17e20898269fbb0ed254a9bf7a6b849873e74c 100644 (file)
 #include "modules.h"
 #include "s_conf.h"
 
-static int mr_dumb_proxy(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
 static const char post_desc[] =
        "Ensure Web forms/proxies cannot connect by disconnecting on POST, GET, and PUT";
 
+static void mr_dumb_proxy(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+
 struct Message post_msgtab = {
        "POST", 0, 0, 0, 0,
        {{mr_dumb_proxy, 0}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore}
@@ -50,21 +51,18 @@ struct Message put_msgtab = {
        {{mr_dumb_proxy, 0}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore}
 };
 
-
 mapi_clist_av1 post_clist[] = {
        &post_msgtab, &get_msgtab, &put_msgtab, NULL
 };
-DECLARE_MODULE_AV2(post, NULL, NULL, post_clist, NULL, NULL, NULL, NULL, post_desc);
 
+DECLARE_MODULE_AV2(post, NULL, NULL, post_clist, NULL, NULL, NULL, NULL, post_desc);
 
 /*
 ** mr_dumb_proxy
 **      parv[1] = comment
 */
-static int
+static void
 mr_dumb_proxy(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        exit_client(client_p, source_p, source_p, "Client Exit");
-
-       return 0;
 }