#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 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,
- {mg_unreg, mg_ignore, mg_ignore, mg_ignore, {me_tginfo, 0}, mg_ignore}
+ "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
-me_tginfo(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+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;
- if (parc != 2)
- 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"))
{
"Excessive target change from %s (%s@%s)",
source_p->name, source_p->username, source_p->orighost);
}
-
- return 0;
}