summaryrefslogtreecommitdiff
path: root/config_servers.h
blob: bdc4e4294b98836ed83f78b22285cd04de7ecc7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef __CONFIG_SERVERS_H
#define __CONFIG_SERVERS_H

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>


#define SERV_CHAN_MAX_NUM 16
typedef struct irc_server_conf
{
	char *name;
	char *user;
	char *password;
	char *server;
	char *port;
	int   ssl;
	int   enabled;
	char *channels[SERV_CHAN_MAX_NUM];
	int connected; //show that was allready connected to chan
} irc_server_conf;

void free_irc_server_conf(irc_server_conf *isc);

static irc_server_conf server_list[] __attribute__((used)) = //default values
{
	/*
	{
	.user = "cbot_git",
	.password = "asdsada",
	.server = "irc.freenode.net",
	.channels = {"#mainlv","#developerslv","#meeseekeria",NULL},
	.port = "6667",
	.ssl = 0,
	},
	
	
	{
	.user = "cbot_git",
	.password = "asdaasda",
	.server = "localhost",
	.channels = {"#default","#bots",NULL},
	.port = "9000",
	.ssl = 0
	},
	*/
	
	{
	.user = "cbot_git",
	.password = "asdaasda",
	.server = "localhost",
	.channels = {"#default","#bots",NULL},
	.port = "6667",
	.ssl = 0
	}
	
};

#define SIZEOF_SERVER_LIST (sizeof(server_list)/sizeof(irc_server_conf))

#endif