summaryrefslogtreecommitdiff
path: root/src/irc/bot/botnet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/bot/botnet.h')
-rw-r--r--src/irc/bot/botnet.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/irc/bot/botnet.h b/src/irc/bot/botnet.h
index 309d6745..722ba8be 100644
--- a/src/irc/bot/botnet.h
+++ b/src/irc/bot/botnet.h
@@ -71,6 +71,7 @@ typedef struct {
struct _botnet_rec {
int connected:1;
int autoconnect:1;
+ int reconnect:1;
char *name; /* botnet name */
char *nick; /* our nick in botnet */
@@ -90,6 +91,8 @@ struct _botnet_rec {
BOT_REC *master; /* link to current master */
};
+extern GSList *botnets;
+
void bot_send_cmd(BOT_REC *bot, char *data);
void bot_send_cmdv(BOT_REC *bot, char *format, ...);
@@ -118,7 +121,7 @@ void bot_destroy(BOT_REC *bot);
void bot_downlink_destroy(BOT_DOWNLINK_REC *rec);
void bot_uplink_destroy(BOT_UPLINK_REC *rec);
-int botnet_connect(const char *network);
+void botnet_connect(BOTNET_REC *botnet);
void botnet_disconnect(BOTNET_REC *botnet);
#endif