]> jfr.im git - solanum.git/blobdiff - modules/m_tginfo.c
appveyor: sanity check gcc itself
[solanum.git] / modules / m_tginfo.c
index 027b2311003f32c8f4a849790750b41bb03c53aa..dd9050a17f899afbc8d138c26188b99bb75c2b4d 100644 (file)
 #include "modules.h"
 #include "s_newconf.h" /* add_tgchange */
 
-static int me_tginfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
 static const char tginfo_desc[] = "Processes target change notifications from other servers";
 
+static void me_tginfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+
 struct Message tginfo_msgtab = {
        "TGINFO", 0, 0, 0, 0,
        {mg_unreg, mg_ignore, mg_ignore, mg_ignore, {me_tginfo, 2}, mg_ignore}
@@ -55,15 +56,15 @@ DECLARE_MODULE_AV2(tginfo, NULL, NULL, tginfo_clist, NULL, NULL, NULL, NULL, tgi
 ** me_tginfo
 **      parv[1] = 0, reserved for future use (number of remaining targets)
 */
-static int
+static void
 me_tginfo(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        if (!IsPerson(source_p))
-               return 0;
+               return;
 
        int remaining = atoi(parv[1]);
        if (remaining != 0)
-               return 0; /* not implemented */
+               return; /* not implemented */
 
        if (!EmptyString(source_p->sockhost) && strcmp(source_p->sockhost, "0"))
        {
@@ -78,6 +79,4 @@ me_tginfo(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
                        "Excessive target change from %s (%s@%s)",
                        source_p->name, source_p->username, source_p->orighost);
        }
-
-       return 0;
 }