static int monitor_init(void);
static void monitor_deinit(void);
-static int m_monitor(struct Client *, struct Client *, int, const char **);
+static int m_monitor(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
struct Message monitor_msgtab = {
- "MONITOR", 0, 0, 0, MFLG_SLOW,
+ "MONITOR", 0, 0, 0, 0,
{mg_unreg, {m_monitor, 2}, mg_ignore, mg_ignore, mg_ignore, {m_monitor, 2}}
};
sendto_one(client_p, "%s", offbuf);
if(p)
- rb_snprintf(buf, sizeof(buf), "%s,%s", name, p);
+ snprintf(buf, sizeof(buf), "%s,%s", name, p);
else
- rb_snprintf(buf, sizeof(buf), "%s", name);
+ snprintf(buf, sizeof(buf), "%s", name);
sendto_one(client_p, form_str(ERR_MONLISTFULL),
me.name, client_p->name,
return;
}
- if (!is_valid_nick(name))
+ if (!clean_nick(name, 0))
continue;
monptr = find_monitor(name, 1);
}
static int
-m_monitor(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+m_monitor(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
switch(parv[1][0])
{
return 0;
}
-