]> jfr.im git - solanum.git/blobdiff - extensions/m_echotags.c
Merge pull request #288 from edk0/umode-o-split
[solanum.git] / extensions / m_echotags.c
index 858f7f90b239c6db09c0a46b4cdb022d62428d07..bbf78aed1650f51a906953914a264ee6487b074f 100644 (file)
@@ -20,18 +20,16 @@ DECLARE_MODULE_AV2(echotags, NULL, NULL, echotags_clist, NULL, NULL, NULL, NULL,
 static void
 m_echotags(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
-       int i;
-
        sendto_one_notice(source_p, ":*** You sent %zu tags.", msgbuf_p->n_tags);
 
-       for (i = 0; i < msgbuf_p->n_tags; i++)
+       for (size_t i = 0; i < msgbuf_p->n_tags; i++)
        {
                struct MsgTag *tag = &msgbuf_p->tags[i];
 
                if (tag->value)
-                       sendto_one_notice(source_p, ":*** %d: %s => %s", i, tag->key, tag->value);
+                       sendto_one_notice(source_p, ":*** %zu: %s => %s", i, tag->key, tag->value);
                else
-                       sendto_one_notice(source_p, ":*** %d: %s", i, tag->key);
+                       sendto_one_notice(source_p, ":*** %zu: %s", i, tag->key);
        }
 }