mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 02:13:01 +01:00
default tox options on initialization
This commit is contained in:
parent
9a4eaa8693
commit
72982cee97
@ -542,6 +542,8 @@ static void init_tox_callbacks(Tox *m)
|
|||||||
|
|
||||||
static void init_tox_options(struct Tox_Options *tox_opts)
|
static void init_tox_options(struct Tox_Options *tox_opts)
|
||||||
{
|
{
|
||||||
|
tox_options_default(tox_opts);
|
||||||
|
|
||||||
tox_opts->ipv6_enabled = !arg_opts.use_ipv4;
|
tox_opts->ipv6_enabled = !arg_opts.use_ipv4;
|
||||||
tox_opts->udp_enabled = !arg_opts.force_tcp;
|
tox_opts->udp_enabled = !arg_opts.force_tcp;
|
||||||
tox_opts->proxy_type = arg_opts.proxy_type;
|
tox_opts->proxy_type = arg_opts.proxy_type;
|
||||||
@ -696,7 +698,7 @@ static Tox *load_toxic(char *data_path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!m)
|
if (!m)
|
||||||
exit_toxic_err("tox_new returned fatal error %d", new_err);
|
exit_toxic_err("tox_new returned fatal error", new_err);
|
||||||
|
|
||||||
if (new_err != TOX_ERR_NEW_OK)
|
if (new_err != TOX_ERR_NEW_OK)
|
||||||
queue_init_message("tox_new returned non-fatal error %d", new_err);
|
queue_init_message("tox_new returned non-fatal error %d", new_err);
|
||||||
|
Loading…
Reference in New Issue
Block a user