mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02:00
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
This commit is contained in:
parent
e177b3fe94
commit
e6aa8415ef
1 changed files with 6 additions and 0 deletions
|
|
@ -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))
|
!masks_match(SERVER(dcc->server), masks, dcc->nick, nickaddr))
|
||||||
return;
|
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
|
/* check file size limit, NOTE: it's still possible to send a
|
||||||
bogus file size and then just send what ever sized file.. */
|
bogus file size and then just send what ever sized file.. */
|
||||||
max_size = settings_get_int("dcc_autoget_max_size");
|
max_size = settings_get_int("dcc_autoget_max_size");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue