aboutsummaryrefslogtreecommitdiffstats
path: root/config_servers.h
diff options
context:
space:
mode:
authorZoRo <dos21h@gmail.com>2016-12-15 19:17:14 +0000
committerZoRo <dos21h@gmail.com>2016-12-15 19:17:14 +0000
commita588aa017512d3cc70dde6627d1218020e755259 (patch)
treea070cd171d18f3efbaedb7cfa0f9d54e2bb3b362 /config_servers.h
downloadagni-a588aa017512d3cc70dde6627d1218020e755259.tar.gz
agni-a588aa017512d3cc70dde6627d1218020e755259.zip
Initial commit
Diffstat (limited to 'config_servers.h')
-rw-r--r--config_servers.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/config_servers.h b/config_servers.h
new file mode 100644
index 0000000..3e4ee94
--- /dev/null
+++ b/config_servers.h
@@ -0,0 +1,40 @@
+#ifndef __CONFIG_SERVERS_H
+#define __CONFIG_SERVERS_H
+
+#include <stdint.h>
+
+
+
+typedef struct irc_server_conf
+{
+ char *user;
+ char *password;
+ char *server;
+ char **channels;
+ int port;
+ int ssl;
+} irc_server_conf;
+
+static irc_server_conf server_list[] =
+{
+ {
+ .user = "agni",
+ .password = NULL,
+ .server = "irc.freenode.net",
+ .channels = {"#mainlv",NULL},
+ .port = 6667,
+ .ssl = 0,
+ },
+ {
+ .user = "agni",
+ .password = NULL,
+ .server = "irc.hacking.allowed.org",
+ .channels = {"#default","#bot",NULL},
+ .port = 6697,
+ .ssl = 1,
+ }
+};
+
+#define SIZEOF_SERVER_LIST (sizeof(server_list)/sizeof(irc_server_conf))
+
+#endif \ No newline at end of file