]> jfr.im git - solanum.git/blobdiff - modules/m_names.c
msg: remove last vestiges of the fakelag system. charybdis has never supported fakelag.
[solanum.git] / modules / m_names.c
index d01baeb50969a982771328e6214fd8b5e0e95c2f..ad23284af709499d5159032323badbe0bed79679 100644 (file)
 #include "parse.h"
 #include "modules.h"
 
-static int m_names(struct Client *, struct Client *, int, const char **);
+static int m_names(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
 
 struct Message names_msgtab = {
-       "NAMES", 0, 0, 0, MFLG_SLOW,
+       "NAMES", 0, 0, 0, 0,
        {mg_unreg, {m_names, 0}, mg_ignore, mg_ignore, mg_ignore, {m_names, 0}}
 };
 
@@ -60,7 +60,7 @@ static void names_global(struct Client *source_p);
  *      parv[1] = channel
  */
 static int
-m_names(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+m_names(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        static time_t last_used = 0;
        struct Channel *chptr = NULL;
@@ -83,7 +83,7 @@ m_names(struct Client *client_p, struct Client *source_p, int parc, const char *
                if((chptr = find_channel(p)) != NULL)
                        channel_member_names(chptr, source_p, 1);
                else
-                       sendto_one(source_p, form_str(RPL_ENDOFNAMES), 
+                       sendto_one(source_p, form_str(RPL_ENDOFNAMES),
                                   me.name, source_p->name, p);
        }
        else
@@ -103,7 +103,7 @@ m_names(struct Client *client_p, struct Client *source_p, int parc, const char *
                }
 
                names_global(source_p);
-               sendto_one(source_p, form_str(RPL_ENDOFNAMES), 
+               sendto_one(source_p, form_str(RPL_ENDOFNAMES),
                           me.name, source_p->name, "*");
        }
 
@@ -137,7 +137,7 @@ names_global(struct Client *source_p)
                chptr = ptr->data;
                channel_member_names(chptr, source_p, 0);
        }
-       cur_len = mlen = rb_sprintf(buf, form_str(RPL_NAMREPLY), 
+       cur_len = mlen = sprintf(buf, form_str(RPL_NAMREPLY),
                                    me.name, source_p->name, "*", "*");
        t = buf + mlen;
 
@@ -180,7 +180,7 @@ names_global(struct Client *source_p)
                        t = buf + mlen;
                }
 
-               tlen = rb_sprintf(t, "%s ", target_p->name);
+               tlen = sprintf(t, "%s ", target_p->name);
                cur_len += tlen;
                t += tlen;
        }