#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}}
};
* 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;
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
}
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, "*");
}
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;
t = buf + mlen;
}
- tlen = rb_sprintf(t, "%s ", target_p->name);
+ tlen = sprintf(t, "%s ", target_p->name);
cur_len += tlen;
t += tlen;
}