summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc-get.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-01-18 02:30:59 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-01-18 02:30:59 +0000
commitce6e5a12f92f5375da6bcf499be666210856dbf3 (patch)
tree172f342986f4f86aaf1ccf7f99331c642ef617f5 /src/irc/dcc/dcc-get.h
parentbabf7c77ac9344c8b12ca2ce87096e7ed079b687 (diff)
downloadirssi-ce6e5a12f92f5375da6bcf499be666210856dbf3.zip
DCC cleanups - half rewrite. New features: file names with spaces work
properly, you can have multiple dcc chats with same people (or more useful, same nick in different ircnets), /DCC CHAT|GET|RESUME with no arguments accepts the last request, notifies if dcc request was sent to channel, warns about connecting to lowports, /SET dcc_autoget_lowports specifies if autogetting should work with lowports, complains of invalid dcc ctcps instead of ignoring. And fixed /SET dcc_autorename OFF which didn't work before. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1135 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc/dcc-get.h')
-rw-r--r--src/irc/dcc/dcc-get.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc-get.h b/src/irc/dcc/dcc-get.h
new file mode 100644
index 00000000..f103b2ae
--- /dev/null
+++ b/src/irc/dcc/dcc-get.h
@@ -0,0 +1,28 @@
+#ifndef __DCC_GET_H
+#define __DCC_GET_H
+
+#include "dcc.h"
+
+enum {
+ DCC_GET_DEFAULT,
+
+ DCC_GET_RENAME,
+ DCC_GET_OVERWRITE,
+ DCC_GET_RESUME
+};
+
+typedef void (*DCC_GET_FUNC) (DCC_REC *);
+
+/* handle receiving DCC - GET/RESUME. */
+void cmd_dcc_receive(const char *data, DCC_GET_FUNC accept);
+
+void dcc_get_connect(DCC_REC *dcc);
+char *dcc_get_download_path(const char *fname);
+
+#define dcc_is_waiting_get(dcc) \
+ ((dcc)->type == DCC_TYPE_GET && dcc_is_waiting_user(dcc))
+
+void dcc_get_init(void);
+void dcc_get_deinit(void);
+
+#endif