diff options
Diffstat (limited to 'config_servers.h')
-rw-r--r-- | config_servers.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/config_servers.h b/config_servers.h index 30a1105..005b274 100644 --- a/config_servers.h +++ b/config_servers.h @@ -1,40 +1,45 @@ #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; - char *channels[16]; + int ssl; + int enabled; + char *channels[SERV_CHAN_MAX_NUM]; } irc_server_conf; +void free_irc_server_conf(irc_server_conf *isc); + static irc_server_conf server_list[] = { /* { - .user = "cbot_git2",#meeseekeria + .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", - //.port = "6667", .ssl = 0 }, */ @@ -47,6 +52,7 @@ static irc_server_conf server_list[] = .port = "6667", .ssl = 0 } + }; #define SIZEOF_SERVER_LIST (sizeof(server_list)/sizeof(irc_server_conf)) |