]> 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 d3c7024978e29fc3f35f1807b2532031430864de..ad23284af709499d5159032323badbe0bed79679 100644 (file)
@@ -29,7 +29,7 @@
 #include "client.h"
 #include "common.h"
 #include "hash.h"
-#include "irc_string.h"
+#include "match.h"
 #include "ircd.h"
 #include "numeric.h"
 #include "send.h"
 #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}}
 };
 
@@ -57,11 +57,10 @@ static void names_global(struct Client *source_p);
 
 /*
  * m_names
- *      parv[0] = sender prefix
  *      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;
@@ -84,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
@@ -104,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, "*");
        }
 
@@ -138,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;
 
@@ -181,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;
        }