5 #ifndef LIBSRSIRC_IRC_DEFS_H 6 #define LIBSRSIRC_IRC_DEFS_H 1 20 #define DEF_HOST "localhost" 23 #define DEF_PORT_PLAIN ((uint16_t)6667) 26 #define DEF_PORT_SSL ((uint16_t)6697) 29 #define DEF_NICK "srsirc" 32 #define DEF_UNAME "bsnsirc" 35 #define DEF_FNAME "serious business irc" 38 #define DEF_CONFLAGS 0 41 #define DEF_SERV_DIST "*" 44 #define DEF_SERV_TYPE 0 47 #define DEF_SERV_INFO "srsbsns srvc" 51 #define DEF_HCTO_US 120000000ul 55 #define DEF_SCTO_US 15000000ul 65 #define CMAP_RFC1459 0 75 #define CMAP_STRICT_RFC1459 1 90 #define IRCPX_SOCKS4 1 93 #define IRCPX_SOCKS5 2 105 #define CHANMODE_CLASS_A 1 116 #define CHANMODE_CLASS_B 2 127 #define CHANMODE_CLASS_C 3 137 #define CHANMODE_CLASS_D 4 bool(* fp_con_read)(tokarr *msg, void *tag)
Logon-time callback for incoming protocol messages.
Definition: defs.h:200
struct irc_s irc
IRC context; pointers to this are our IRC context handle type.
Definition: defs.h:144
bool(* uhnd_fn)(irc *ctx, tokarr *msg, size_t nargs, bool pre)
User-registered protocol command callback type.
Definition: defs.h:240
char * tokarr[18]
Field array for the parts of incoming IRC protocol messages.
Definition: defs.h:174
void(* fp_mut_nick)(char *nick, size_t nick_sz)
Logon-time callback type for nickname problems.
Definition: defs.h:215