Add mute feature

This will make tio go fully silent and not print anything.
This commit is contained in:
Martin Lund 2022-10-22 08:59:34 +02:00
parent 784201ea2e
commit c80f833a06
3 changed files with 23 additions and 0 deletions

View file

@ -302,6 +302,17 @@ static int data_handler(void *user, const char *section, const char *name,
{
option.alert = alert_option_parse(value);
}
else if (!strcmp(name, "mute"))
{
if (!strcmp(value, "enable"))
{
option.mute = true;
}
else if (!strcmp(value, "disable"))
{
option.mute = false;
}
}
}
return 0;