diff options
author | Timo Sirainen <cras@irssi.org> | 2002-05-16 18:00:47 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-05-16 18:00:47 +0000 |
commit | e6aa8415efdd23cf303410c9b6c75d2a46d242bf (patch) | |
tree | a2ac7bc4366e22f6e1a901ddbf2c887a235635c1 | |
parent | e177b3fe94d4224d2a501029012c428eef3ac4c7 (diff) | |
download | irssi-e6aa8415efdd23cf303410c9b6c75d2a46d242bf.zip |
kludgeing: don't autoget files beginning with '.' if dcc_download_path is
home dir.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2800 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/irc/dcc/dcc-autoget.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc-autoget.c b/src/irc/dcc/dcc-autoget.c index bc5a2e74..bb3ac6d9 100644 --- a/src/irc/dcc/dcc-autoget.c +++ b/src/irc/dcc/dcc-autoget.c @@ -49,6 +49,12 @@ static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr) !masks_match(SERVER(dcc->server), masks, dcc->nick, nickaddr)) return; + /* don't autoget files beginning with a dot, if download dir is + our home dir (stupid kludge for stupid people) */ + if (*dcc->file == '.' && + strcmp(settings_get_str("dcc_download_path"), "~") == 0) + return; + /* check file size limit, NOTE: it's still possible to send a bogus file size and then just send what ever sized file.. */ max_size = settings_get_int("dcc_autoget_max_size"); |