#include "modules.h"
#include "logger.h"
-static int ms_operspy(struct Client *client_p, struct Client *source_p,
+static int ms_operspy(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
int parc, const char *parv[]);
struct Message operspy_msgtab = {
- "OPERSPY", 0, 0, 0, MFLG_SLOW,
+ "OPERSPY", 0, 0, 0, 0,
{mg_ignore, mg_ignore, mg_ignore, mg_ignore, {ms_operspy, 2}, mg_ignore}
};
* parv[2] - optional params
*/
static int
-ms_operspy(struct Client *client_p, struct Client *source_p,
+ms_operspy(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
int parc, const char *parv[])
{
static char buffer[BUFSIZE];
if((size_t)(cur_len + len) >= sizeof(buffer))
return 0;
- rb_snprintf(ptr, sizeof(buffer) - cur_len, "%s ",
+ snprintf(ptr, sizeof(buffer) - cur_len, "%s ",
parv[i]);
ptr += len;
cur_len += len;
return 0;
}
-