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:
parent
8a9fcb53fc
commit
f3ccfa567d
@ -40,7 +40,7 @@ static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr)
|
||||
return;
|
||||
|
||||
/* check for lowports */
|
||||
if (dcc->port < 1024 && !settings_get_bool("dcc_autoget_lowports"))
|
||||
if (dcc->port < 1024 && !settings_get_bool("dcc_autoaccept_lowports"))
|
||||
return;
|
||||
|
||||
/* 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)
|
||||
{
|
||||
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_int("dcc", "dcc_autoget_max_size", 1000);
|
||||
settings_add_str("dcc", "dcc_autoget_masks", "");
|
||||
|
@ -520,7 +520,7 @@ static void cmd_whois(const char *data, IRC_SERVER_REC *server,
|
||||
}
|
||||
|
||||
#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) \
|
||||
(DCC_AUTOACCEPT_PORT(dcc) && \
|
||||
|
Loading…
Reference in New Issue
Block a user