#include "send.h"
#include "supported.h"
+static const char monitor_desc[] = "Provides the MONITOR facility for tracking user signon and signoff";
+
static int monitor_init(void);
static void monitor_deinit(void);
-static int m_monitor(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static void m_monitor(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
struct Message monitor_msgtab = {
"MONITOR", 0, 0, 0, 0,
mapi_clist_av1 monitor_clist[] = { &monitor_msgtab, NULL };
-static const char monitor_desc[] = "Provides the MONITOR facility for tracking user signon and signoff";
-
DECLARE_MODULE_AV2(monitor, monitor_init, monitor_deinit, monitor_clist, NULL, NULL, NULL, NULL, monitor_desc);
static int monitor_init(void)
sendto_one(client_p, "%s", offbuf);
}
-static int
+static void
m_monitor(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
switch(parv[1][0])
{
sendto_one(client_p, form_str(ERR_NEEDMOREPARAMS),
me.name, source_p->name, "MONITOR");
- return 0;
+ return;
}
add_monitor(source_p, parv[2]);
{
sendto_one(client_p, form_str(ERR_NEEDMOREPARAMS),
me.name, source_p->name, "MONITOR");
- return 0;
+ return;
}
del_monitor(source_p, parv[2]);
default:
break;
}
-
- return 0;
}