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
This commit is contained in:
Timo Sirainen 2001-01-18 02:30:59 +00:00 committed by cras
commit ce6e5a12f9
15 changed files with 1511 additions and 1076 deletions

28
src/irc/dcc/dcc-get.h Normal file
View file

@ -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