]> jfr.im git - solanum.git/blobdiff - extensions/m_omode.c
Give all extensions/m_* modules AV2 descriptions
[solanum.git] / extensions / m_omode.c
index d6e5dfbc3da0293a6e796b3fd2d5de00d0bc9dd3..91caf405baccf7a67fe185d3e95c27d5525ed6d1 100644 (file)
@@ -21,8 +21,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: m_omode.c 3121 2007-01-02 13:23:04Z jilles $
  */
 
 #include "stdinc.h"
 #include "messages.h"
 #include "logger.h"
 
-static int mo_omode(struct Client *, struct Client *, int, const char **);
+static int mo_omode(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
 
 struct Message omode_msgtab = {
-       "OMODE", 0, 0, 0, MFLG_SLOW,
+       "OMODE", 0, 0, 0, 0,
        {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_omode, 3}}
 };
 
 mapi_clist_av1 omode_clist[] = { &omode_msgtab, NULL };
 
-DECLARE_MODULE_AV1(omode, NULL, NULL, omode_clist, NULL, NULL, "$Revision: 3121 $");
+static const char omode_desc[] = "Allow admins to forcibly change modes on channels with the OMODE command";
+
+DECLARE_MODULE_AV2(omode, NULL, NULL, omode_clist, NULL, NULL, NULL, NULL, omode_desc);
 
 /*
  * mo_omode - MODE command handler
  * parv[1] - channel
  */
 static int
-mo_omode(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+mo_omode(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        struct Channel *chptr = NULL;
        struct membership *msptr;