added delay for autojoin
This commit is contained in:
parent
bc00b79aa4
commit
2908d7f824
5 changed files with 123 additions and 93 deletions
|
@ -39,9 +39,9 @@ struct t_config_option *twc_config_friend_request_message;
|
|||
struct t_config_option *twc_config_short_id_size;
|
||||
|
||||
char *twc_profile_option_names[TWC_PROFILE_NUM_OPTIONS] = {
|
||||
"save_file", "autoload", "autojoin", "max_friend_requests",
|
||||
"proxy_address", "proxy_port", "proxy_type", "udp",
|
||||
"ipv6", "passphrase", "logging",
|
||||
"save_file", "autoload", "autojoin", "autojoin_delay",
|
||||
"max_friend_requests", "proxy_address", "proxy_port", "proxy_type",
|
||||
"udp", "ipv6", "passphrase", "logging",
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -222,6 +222,15 @@ twc_config_init_option(struct t_twc_profile *profile,
|
|||
"by your friends";
|
||||
default_value = "off";
|
||||
break;
|
||||
case TWC_PROFILE_OPTION_AUTOJOIN_DELAY:
|
||||
type = "integer";
|
||||
description = "delay befor do autojoin (in ms) this required to "
|
||||
"tox from entering incorrect state and stop processing "
|
||||
"group events";
|
||||
min = 0;
|
||||
max = INT_MAX;
|
||||
default_value = "5000";
|
||||
break;
|
||||
case TWC_PROFILE_OPTION_IPV6:
|
||||
type = "boolean";
|
||||
description = "use IPv6 as well as IPv4 to connect to the Tox "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue