1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

dcc_autoget_lowports -> dcc_autoaccept_lowports since dcc chat uses it too

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1412 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-03-20 16:35:00 +00:00 committed by cras
parent 8a9fcb53fc
commit f3ccfa567d
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr)
return; return;
/* check for lowports */ /* check for lowports */
if (dcc->port < 1024 && !settings_get_bool("dcc_autoget_lowports")) if (dcc->port < 1024 && !settings_get_bool("dcc_autoaccept_lowports"))
return; return;
/* check that autoget masks match */ /* check that autoget masks match */
@ -69,7 +69,7 @@ static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr)
void dcc_autoget_init(void) void dcc_autoget_init(void)
{ {
settings_add_bool("dcc", "dcc_autoget", FALSE); settings_add_bool("dcc", "dcc_autoget", FALSE);
settings_add_bool("dcc", "dcc_autoget_lowports", FALSE); settings_add_bool("dcc", "dcc_autoaccept_lowports", FALSE);
settings_add_bool("dcc", "dcc_autoresume", FALSE); settings_add_bool("dcc", "dcc_autoresume", FALSE);
settings_add_int("dcc", "dcc_autoget_max_size", 1000); settings_add_int("dcc", "dcc_autoget_max_size", 1000);
settings_add_str("dcc", "dcc_autoget_masks", ""); settings_add_str("dcc", "dcc_autoget_masks", "");

View File

@ -520,7 +520,7 @@ static void cmd_whois(const char *data, IRC_SERVER_REC *server,
} }
#define DCC_AUTOACCEPT_PORT(dcc) \ #define DCC_AUTOACCEPT_PORT(dcc) \
((dcc)->port >= 1024 || settings_get_bool("dcc_autoaccept_lowport")) ((dcc)->port >= 1024 || settings_get_bool("dcc_autoaccept_lowports"))
#define DCC_CHAT_AUTOACCEPT(dcc, server, nick, addr) \ #define DCC_CHAT_AUTOACCEPT(dcc, server, nick, addr) \
(DCC_AUTOACCEPT_PORT(dcc) && \ (DCC_AUTOACCEPT_PORT(dcc) && \