#include "send.h"
#include "channel.h"
#include "client.h"
-#include "common.h"
-#include "config.h"
+#include "defaults.h"
#include "ircd.h"
#include "numeric.h"
#include "s_serv.h"
static const char operspy_desc[] =
"Provides the operspy facility for viewing normally private data";
-static int ms_operspy(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
+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 = {
* 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;
}