]> jfr.im git - solanum.git/blobdiff - extensions/m_okick.c
modules: Add AV2 descriptions to all m_u* modules
[solanum.git] / extensions / m_okick.c
index 50a2b7c9ff57f0b5336b575c8dd00c301b9c12eb..b5397a09928ea1076b637241e2105beb1eefad3f 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: m_okick.c 3554 2007-08-10 22:31:14Z jilles $
  */
 
 #include "stdinc.h"
 #include "messages.h"
 #include "logger.h"
 
-static int mo_okick(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static int mo_okick(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
 
 
 struct Message okick_msgtab = {
-       "OKICK", 0, 0, 0, MFLG_SLOW,
+       "OKICK", 0, 0, 0, 0,
        {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_okick, 4}}
 };
 
 mapi_clist_av1 okick_clist[] = { &okick_msgtab, NULL };
 
-DECLARE_MODULE_AV1(okick, NULL, NULL, okick_clist, NULL, NULL, "$Revision: 3554 $");
+DECLARE_MODULE_AV2(okick, NULL, NULL, okick_clist, NULL, NULL, NULL, NULL, NULL);
 
 /*
 ** m_okick
@@ -59,7 +57,7 @@ DECLARE_MODULE_AV1(okick, NULL, NULL, okick_clist, NULL, NULL, "$Revision: 3554
 **      parv[3] = kick comment
 */
 static int
-mo_okick(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+mo_okick(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        struct Client *who;
        struct Client *target_p;
@@ -101,7 +99,7 @@ mo_okick(struct Client *client_p, struct Client *source_p, int parc, const char
 
        if((p = strchr(parv[2], ',')))
                *p = '\0';
-       user = LOCAL_COPY(parv[2]);     // strtoken(&p2, parv[2], ","); 
+       user = LOCAL_COPY(parv[2]);     // strtoken(&p2, parv[2], ",");
        if(!(who = find_chasing(source_p, user, &chasing)))
        {
                return 0;