]> jfr.im git - solanum.git/blobdiff - extensions/m_echotags.c
Message handlers should return void.
[solanum.git] / extensions / m_echotags.c
index 5bc5fd46ad1746cf6edc6a131df427cd6961ad91..858f7f90b239c6db09c0a46b4cdb022d62428d07 100644 (file)
@@ -4,7 +4,7 @@
 #include "ircd.h"
 #include "send.h"
 
-static int m_echotags(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static void m_echotags(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
 
 struct Message echotags_msgtab = {
        "ECHOTAGS", 0, 0, 0, 0,
@@ -17,7 +17,7 @@ static const char echotags_desc[] = "A test module for tags";
 
 DECLARE_MODULE_AV2(echotags, NULL, NULL, echotags_clist, NULL, NULL, NULL, NULL, echotags_desc);
 
-static int
+static void
 m_echotags(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        int i;
@@ -33,8 +33,6 @@ m_echotags(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sour
                else
                        sendto_one_notice(source_p, ":*** %d: %s", i, tag->key);
        }
-
-       return 0;
 }