]> jfr.im git - solanum.git/blobdiff - modules/core/m_part.c
core/m_server: Add AV2 description
[solanum.git] / modules / core / m_part.c
index 17fac283ebe9196d9e26fb70479e6e172b2ec31e..73e7277c50977d6fe4f2c0f04be410945c0782d3 100644 (file)
@@ -20,8 +20,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_part.c 98 2005-09-11 03:37:47Z nenolod $
  */
 
 #include "stdinc.h"
 #include "inline/stringops.h"
 #include "hook.h"
 
-static int m_part(struct Client *, struct Client *, int, const char **);
+static int m_part(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static const char part_desc[] = "Provides the PART command to leave a channel";
 
 struct Message part_msgtab = {
-       "PART", 0, 0, 0, MFLG_SLOW,
+       "PART", 0, 0, 0, 0,
        {mg_unreg, {m_part, 2}, {m_part, 2}, mg_ignore, mg_ignore, {m_part, 2}}
 };
 
 mapi_clist_av1 part_clist[] = { &part_msgtab, NULL };
 
-DECLARE_MODULE_AV1(part, NULL, NULL, part_clist, NULL, NULL, "$Revision: 98 $");
+DECLARE_MODULE_AV2(part, NULL, NULL, part_clist, NULL, NULL, NULL, NULL, part_desc);
 
 static void part_one_client(struct Client *client_p,
                            struct Client *source_p, char *name,
@@ -66,7 +65,7 @@ static int do_message_hook(struct Client *source_p, struct Channel *chptr, const
 **      parv[2] = reason
 */
 static int
-m_part(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+m_part(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        char *p, *name;
        char reason[REASONLEN + 1];