diff options
author | Timo Sirainen <cras@irssi.org> | 2001-02-10 02:02:26 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-02-10 02:02:26 +0000 |
commit | e4f7d55ce941bf33b1d23d7c21e6beb9fb69aba0 (patch) | |
tree | b69359528adf2716cf3d4a765d3f0f7767565be7 /src/irc/dcc/dcc-autoget.c | |
parent | 118f9a11ebfc521198d39fd3048ad462ace696ed (diff) | |
download | irssi-e4f7d55ce941bf33b1d23d7c21e6beb9fb69aba0.zip |
DCC cleanups - split DCC_REC to CHAT|GET|SEND_DCC_RECs. Plugins should
now be able to add whatever new DCC types.
Nick changes affect DCC chats. /WHOIS without parameters works properly
in DCC CHAT queries.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1194 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc/dcc-autoget.c')
-rw-r--r-- | src/irc/dcc/dcc-autoget.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/irc/dcc/dcc-autoget.c b/src/irc/dcc/dcc-autoget.c index cb25ecf8..59e01c7b 100644 --- a/src/irc/dcc/dcc-autoget.c +++ b/src/irc/dcc/dcc-autoget.c @@ -25,15 +25,14 @@ #include "dcc-get.h" -static void sig_dcc_request(DCC_REC *dcc, const char *nickaddr) +static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr) { struct stat statbuf; const char *masks; char *str, *file; int max_size; - g_return_if_fail(dcc != NULL); - if (dcc->type != DCC_TYPE_GET) return; + if (!IS_DCC_GET(dcc)) return; /* check if we want to autoget file offer */ if (!settings_get_bool("dcc_autoget") && |