summaryrefslogtreecommitdiff
path: root/src/irc/bot/botnet.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-05-29 23:31:48 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-05-29 23:31:48 +0000
commited140195300797b185b0fa8442166cdd1c927a73 (patch)
tree7c7e672ae8d7a81287ecf033b78b07f537e2925d /src/irc/bot/botnet.h
parent9747762593fc7ac193887fbf5f83226ed3f6ce14 (diff)
downloadirssi-ed140195300797b185b0fa8442166cdd1c927a73.zip
Sending files through botnet works.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@253 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/bot/botnet.h')
-rw-r--r--src/irc/bot/botnet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/irc/bot/botnet.h b/src/irc/bot/botnet.h
index 22765f1d..da022b22 100644
--- a/src/irc/bot/botnet.h
+++ b/src/irc/bot/botnet.h
@@ -48,6 +48,8 @@ typedef struct {
int read_tag;
void *buffer;
+ int file_handle; /* if bot is sending a file to us */
+
GSList *ircnets;
} BOT_REC;
@@ -104,6 +106,8 @@ void botnet_broadcast(BOTNET_REC *botnet, BOT_REC *except_bot,
void botnet_send_cmd(BOTNET_REC *botnet, const char *source,
const char *target, const char *data);
+int botnet_send_file(BOTNET_REC *botnet, const char *target, const char *fname);
+
BOT_REC *botnet_find_master(BOTNET_REC *botnet, BOT_REC *old_master);
void botnet_set_master(BOTNET_REC *botnet, BOT_REC *bot);