mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
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:
parent
ab3ba54ab4
commit
c3919e66a8
1 changed files with 5 additions and 0 deletions
|
|
@ -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 == '.' &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue