]> jfr.im git - solanum.git/blobdiff - modules/m_tginfo.c
add help for `chm_regmsg`
[solanum.git] / modules / m_tginfo.c
index 30cf267eb4d78e0faf60ede0274eb90a253d8b93..c30d65013c17c439a4da5d628c1435eb72cf0591 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 "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, MFLG_SLOW,
+       "TGINFO", 0, 0, 0, 0,
        {mg_unreg, mg_ignore, mg_ignore, mg_ignore, {me_tginfo, 2}, mg_ignore}
 };
 
 mapi_clist_av1 tginfo_clist[] = { &tginfo_msgtab, NULL };
 
-DECLARE_MODULE_AV1(tginfo, NULL, NULL, tginfo_clist, NULL, NULL, "$Revision$");
+DECLARE_MODULE_AV2(tginfo, NULL, NULL, tginfo_clist, NULL, NULL, NULL, NULL, tginfo_desc);
 
 /*
 ** 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"))
        {
@@ -77,6 +78,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;
 }