]> jfr.im git - solanum.git/blobdiff - modules/m_resv.c
modules: Add AV2 descriptions to all m_r* modules
[solanum.git] / modules / m_resv.c
index 498d4429b94e07230f125bbfc585a5c668c996b1..8f010bcf6cce51fbe89f325dd3a914339b1ed975 100644 (file)
@@ -19,8 +19,6 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
- *
- *  $Id$
  */
 
 #include "stdinc.h"
 #include "bandbi.h"
 #include "operhash.h"
 
-static int mo_resv(struct Client *, struct Client *, int, const char **);
-static int ms_resv(struct Client *, struct Client *, int, const char **);
-static int me_resv(struct Client *, struct Client *, int, const char **);
-static int mo_unresv(struct Client *, struct Client *, int, const char **);
-static int ms_unresv(struct Client *, struct Client *, int, const char **);
-static int me_unresv(struct Client *, struct Client *, int, const char **);
+static int mo_resv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int ms_resv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int me_resv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int mo_unresv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int ms_unresv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int me_unresv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static const char resv_desc[] =
+       "Provides management of reserved nicknames and channels using (UN)RESV";
 
 struct Message resv_msgtab = {
-       "RESV", 0, 0, 0, MFLG_SLOW | MFLG_UNREG,
+       "RESV", 0, 0, 0, 0,
        {mg_ignore, mg_not_oper, {ms_resv, 4}, {ms_resv, 4}, {me_resv, 5}, {mo_resv, 3}}
 };
 
 struct Message unresv_msgtab = {
-       "UNRESV", 0, 0, 0, MFLG_SLOW | MFLG_UNREG,
+       "UNRESV", 0, 0, 0, 0,
        {mg_ignore, mg_not_oper, {ms_unresv, 3}, {ms_unresv, 3}, {me_unresv, 2}, {mo_unresv, 2}}
 };
 
 mapi_clist_av1 resv_clist[] = { &resv_msgtab, &unresv_msgtab, NULL };
 
-DECLARE_MODULE_AV1(resv, NULL, NULL, resv_clist, NULL, NULL, "$Revision$");
+DECLARE_MODULE_AV2(resv, NULL, NULL, resv_clist, NULL, NULL, NULL, NULL, resv_desc);
 
 static void parse_resv(struct Client *source_p, const char *name,
                       const char *reason, int temp_time, int propagated);
@@ -77,7 +77,7 @@ static void remove_resv(struct Client *source_p, const char *name, int propagate
  *      parv[2] = reason
  */
 static int
-mo_resv(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+mo_resv(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        const char *name;
        const char *reason;
@@ -155,7 +155,7 @@ mo_resv(struct Client *client_p, struct Client *source_p, int parc, const char *
  *     parv[3] = reason
  */
 static int
-ms_resv(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+ms_resv(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        /* parv[0]  parv[1]        parv[2]  parv[3]
         * oper     target server  resv     reason
@@ -173,7 +173,7 @@ ms_resv(struct Client *client_p, struct Client *source_p, int parc, const char *
 }
 
 static int
-me_resv(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+me_resv(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        /* time name 0 :reason */
        if(!IsPerson(source_p))
@@ -423,7 +423,7 @@ cluster_resv(struct Client *source_p, int temp_time, const char *name, const cha
  *     parv[1] = channel/nick to unforbid
  */
 static int
-mo_unresv(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+mo_unresv(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        int propagated = 1;
 
@@ -464,7 +464,7 @@ mo_unresv(struct Client *client_p, struct Client *source_p, int parc, const char
  *     parv[2] = resv to remove
  */
 static int
-ms_unresv(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+ms_unresv(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        /* parv[0]  parv[1]        parv[2]
         * oper     target server  resv to remove
@@ -482,7 +482,7 @@ ms_unresv(struct Client *client_p, struct Client *source_p, int parc, const char
 }
 
 static int
-me_unresv(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+me_unresv(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        /* name */
        if(!IsPerson(source_p))