diff options
author | Timo Sirainen <cras@irssi.org> | 2004-07-11 21:56:52 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-07-11 21:56:52 +0000 |
commit | c3919e66a8d7dc1c79e1e52fdbc926edc9185100 (patch) | |
tree | 6323f5bf02e9dc58bde8ad557124e4dfa5b04596 /src/irc/dcc | |
parent | ab3ba54ab438b2487fb5dfe169ef21975855974c (diff) | |
download | irssi-c3919e66a8d7dc1c79e1e52fdbc926edc9185100.zip |
Don't autoget files sent to channels, unless dcc_autoget_masks is set.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3271 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc')
-rw-r--r-- | src/irc/dcc/dcc-autoget.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc-autoget.c b/src/irc/dcc/dcc-autoget.c index 1d4dd9ab..2d87b174 100644 --- a/src/irc/dcc/dcc-autoget.c +++ b/src/irc/dcc/dcc-autoget.c @@ -49,6 +49,11 @@ static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr) !masks_match(SERVER(dcc->server), masks, dcc->nick, nickaddr)) return; + /* Unless specifically said in dcc_autoget_masks, don't do autogets + sent to channels. */ + if (*masks == '\0' && dcc->target != NULL && ischannel(*dcc->target)) + return; + /* don't autoget files beginning with a dot, if download dir is our home dir (stupid kludge for stupid people) */ if (*dcc->arg == '.' && |