7 static int m_echotags(struct MsgBuf
*msgbuf_p
, struct Client
*client_p
, struct Client
*source_p
, int parc
, const char *parv
[]);
9 struct Message echotags_msgtab
= {
10 "ECHOTAGS", 0, 0, 0, MFLG_SLOW
,
11 { mg_ignore
, {m_echotags
, 0}, mg_ignore
, mg_ignore
, mg_ignore
, {m_echotags
, 0} }
14 mapi_clist_av1 echotags_clist
[] = { &echotags_msgtab
, NULL
};
16 DECLARE_MODULE_AV1(echotags
, NULL
, NULL
, echotags_clist
, NULL
, NULL
, "$Id$");
19 m_echotags(struct MsgBuf
*msgbuf_p
, struct Client
*client_p
, struct Client
*source_p
, int parc
, const char *parv
[])
23 sendto_one_notice(source_p
, ":*** You sent %zu tags.", msgbuf_p
->n_tags
);
25 for (i
= 0; i
< msgbuf_p
->n_tags
; i
++)
27 struct MsgTag
*tag
= &msgbuf_p
->tags
[i
];
30 sendto_one_notice(source_p
, ":*** %d: %s => %s", i
, tag
->key
, tag
->value
);
32 sendto_one_notice(source_p
, ":*** %d: %s", i
, tag
->key
);