#include "parse.h"
#include "modules.h"
-static int ms_encap(struct Client *client_p, struct Client *source_p,
+static int ms_encap(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
int parc, const char *parv[]);
struct Message encap_msgtab = {
- "ENCAP", 0, 0, 0, MFLG_SLOW,
+ "ENCAP", 0, 0, 0, 0,
{mg_ignore, mg_ignore, {ms_encap, 3}, {ms_encap, 3}, mg_ignore, mg_ignore}
};
* parv[3] - parameters
*/
static int
-ms_encap(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+ms_encap(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
char buffer[BUFSIZE];
char *ptr;
/* if it matches us, find a matching handler and call it */
if(match(parv[1], me.name))
- handle_encap(client_p, source_p, parv[2], parc - 2, parv + 2);
+ handle_encap(msgbuf_p, client_p, source_p, parv[2], parc - 2, parv + 2);
return 0;
}