#include "modules.h"
#include "logger.h"
-static int ms_operspy(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
- int parc, const char *parv[]);
+static const char operspy_desc[] =
+ "Provides the operspy facility for viewing normally private data";
+
+static void 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, 0,
mapi_clist_av1 operspy_clist[] = { &operspy_msgtab, NULL };
-static const char operspy_desc[] =
- "Provides the operspy facility for viewing normally private data";
-
DECLARE_MODULE_AV2(operspy, NULL, NULL, operspy_clist, NULL, NULL, NULL, NULL, operspy_desc);
/* ms_operspy()
* parv[1] - operspy command
* parv[2] - optional params
*/
-static int
+static void
ms_operspy(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
int parc, const char *parv[])
{
len = strlen(parv[i]) + 1;
if((size_t)(cur_len + len) >= sizeof(buffer))
- return 0;
+ return;
snprintf(ptr, sizeof(buffer) - cur_len, "%s ",
parv[i]);
report_operspy(source_p, parv[1], buffer);
}
-
- return 0;
}