mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Replace '1' with 'enable' in config files
This commit is contained in:
parent
6b91159fdf
commit
d43ef3333f
1 changed files with 12 additions and 3 deletions
|
|
@ -124,15 +124,24 @@ static int data_handler(void *user, const char *section, const char *name,
|
|||
}
|
||||
else if (!strcmp(name, "no-autoconnect"))
|
||||
{
|
||||
option.no_autoconnect = atoi(value);
|
||||
if (!strcmp(value, "enable"))
|
||||
{
|
||||
option.no_autoconnect = true;
|
||||
}
|
||||
}
|
||||
else if (!strcmp(name, "log"))
|
||||
{
|
||||
option.log = atoi(value);
|
||||
if (!strcmp(value, "enable"))
|
||||
{
|
||||
option.log = true;
|
||||
}
|
||||
}
|
||||
else if (!strcmp(name, "local-echo"))
|
||||
{
|
||||
option.local_echo = atoi(value);
|
||||
if (!strcmp(value, "enable"))
|
||||
{
|
||||
option.local_echo = true;
|
||||
}
|
||||
}
|
||||
else if (!strcmp(name, "timestamp"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue