#include "send.h"
#include "channel.h"
#include "client.h"
-#include "common.h"
-#include "config.h"
+#include "defaults.h"
#include "ircd.h"
#include "numeric.h"
#include "s_serv.h"
static const char encap_desc[] = "Provides the TS6 ENCAP facility";
-static int ms_encap(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
+static void ms_encap(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
int parc, const char *parv[]);
struct Message encap_msgtab = {
* parv[2] - subcommand
* parv[3] - parameters
*/
-static int
+static void
ms_encap(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
char buffer[BUFSIZE];
/* ugh, not even at the last parameter, just bail --fl */
if((size_t)(cur_len + len) >= sizeof(buffer))
- return 0;
+ return;
snprintf(ptr, sizeof(buffer) - cur_len, "%s ", parv[i]);
cur_len += len;
/* if it matches us, find a matching handler and call it */
if(match(parv[1], me.name))
handle_encap(msgbuf_p, client_p, source_p, parv[2], parc - 2, parv + 2);
-
- return 0;
}