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
This commit is contained in:
Timo Sirainen 2004-07-11 21:56:52 +00:00 committed by cras
parent ab3ba54ab4
commit c3919e66a8

View File

@ -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 == '.' &&