Files
bitchx/include/parse.h
Kevin Easton 6ef78086f8 Bump MAXPARA (maximum protocol message arguments) to 20 as per EPIC5
Needed to bump it to 16 anyway (the RFC says 15 plus the protocol command itself, so 16), but EPIC5 bumped it
up to 20 based on a report from users of RusNet so we might as well go up to that as well.
2019-06-26 17:26:02 +10:00

51 lines
1.0 KiB
C

/*
* parse.h
*
* written by matthew green
* copyright (c) 1993
*
* @(#)$Id$
*/
#ifndef PARSE_H_
#define PARSE_H_
typedef struct {
const char *command;
void (*inbound_handler) (char *, char **);
void (*outbound_handler) (char *);
int flags;
unsigned long bytes;
unsigned long count;
} protocol_command;
extern protocol_command rfc1459[];
extern int num_protocol_cmds;
#define PROTO_NOQUOTE 1 << 0
#define PROTO_DEPREC 1 << 1
char *BX_PasteArgs (char **, int);
int BX_BreakArgs (char *, char **, char **, int);
void parse_server (char *);
void irc2_parse_server (char *);
int annoy_kicks (int, char *, char *, char *, NickList *);
int ctcp_flood_check (char *, char *, char *);
void load_scripts (void);
int check_auto_reply (char *);
extern char *FromUserHost;
extern char *last_split_server;
extern char *last_split_from;
extern int in_server_ping;
extern int doing_privmsg;
#define WAIT_WHO 0
#define WAIT_BANS 1
#define WAIT_MODE 2
#define MAXPARA 20 /* RFC1459 says 15+1, but RusNet uses more */
#endif /* PARSE_H_ */