]> jfr.im git - solanum.git/blobdiff - modules/m_monitor.c
Add oper:testline
[solanum.git] / modules / m_monitor.c
index 2a26af86344e87aba5f824da0b127b1a9889b5ff..4269ad5678227c86360880a3d6d4c392be0c8f81 100644 (file)
 #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,
@@ -49,7 +51,8 @@ struct Message monitor_msgtab = {
 };
 
 mapi_clist_av1 monitor_clist[] = { &monitor_msgtab, NULL };
-DECLARE_MODULE_AV2(monitor, monitor_init, monitor_deinit, monitor_clist, NULL, NULL, NULL, NULL, NULL);
+
+DECLARE_MODULE_AV2(monitor, monitor_init, monitor_deinit, monitor_clist, NULL, NULL, NULL, NULL, monitor_desc);
 
 static int monitor_init(void)
 {
@@ -321,7 +324,7 @@ show_monitor_status(struct Client *client_p)
                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])
@@ -331,7 +334,7 @@ m_monitor(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
                        {
                                sendto_one(client_p, form_str(ERR_NEEDMOREPARAMS),
                                                me.name, source_p->name, "MONITOR");
-                               return 0;
+                               return;
                        }
 
                        add_monitor(source_p, parv[2]);
@@ -341,7 +344,7 @@ m_monitor(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
                        {
                                sendto_one(client_p, form_str(ERR_NEEDMOREPARAMS),
                                                me.name, source_p->name, "MONITOR");
-                               return 0;
+                               return;
                        }
 
                        del_monitor(source_p, parv[2]);
@@ -365,6 +368,4 @@ m_monitor(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
                default:
                        break;
        }
-
-       return 0;
 }