summaryrefslogtreecommitdiff
path: root/src/irc/core/irc-servers-setup.h
blob: 65739f795e2abd4ee2aba4d851b9a9d8101a5fcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __IRC_SERVERS_SETUP_H
#define __IRC_SERVERS_SETUP_H

#include "chat-protocols.h"
#include "servers-setup.h"

#define IRC_SERVER_SETUP(server) \
	PROTO_CHECK_CAST(SERVER_SETUP(server), IRC_SERVER_SETUP_REC, \
			 chat_type, "IRC")

#define IS_IRC_SERVER_SETUP(server) \
	(IRC_SERVER_SETUP(server) ? TRUE : FALSE)

typedef struct {
#include "server-setup-rec.h"
	int max_cmds_at_once; /* override the default if > 0 */
	int cmd_queue_speed; /* override the default if > 0 */
} IRC_SERVER_SETUP_REC;

void irc_servers_setup_init(void);
void irc_servers_setup_deinit(void);

#endif