mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-12-05 06:22:18 +00:00
preserve storage privacy+preference
This commit is contained in:
1 file changed
+5
-5
@@ -68,7 +68,7 @@ static hwinfo hwinfos[] = {
|
||||
{"os", "OS", sysinfo_backend_get_os},
|
||||
{"cpu", "CPU", sysinfo_backend_get_cpu},
|
||||
{"memory", "Memory", sysinfo_backend_get_memory},
|
||||
{"storage", "Storage", sysinfo_backend_get_disk},
|
||||
{"storage", "Storage", sysinfo_backend_get_disk, TRUE},
|
||||
{"gpu", "GPU", sysinfo_backend_get_gpu},
|
||||
{"chipset", "Chipset", sysinfo_backend_get_chipset, TRUE},
|
||||
{"sound", "Sound", sysinfo_backend_get_sound, TRUE},
|
||||
@@ -192,19 +192,19 @@ sysinfo_set_pref (char *key, char *value)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!strcmp (key, "announce"))
|
||||
if (!g_ascii_strcasecmp (key, "announce"))
|
||||
{
|
||||
sysinfo_set_pref_real (key, value, DEFAULT_ANNOUNCE);
|
||||
sysinfo_set_pref_real ("announce", value, DEFAULT_ANNOUNCE);
|
||||
return;
|
||||
}
|
||||
else if (g_str_has_prefix (key, "hide_"))
|
||||
else if (!g_ascii_strncasecmp (key, "hide_", 5))
|
||||
{
|
||||
const char *normalized = normalize_info_name (key + 5);
|
||||
int i;
|
||||
|
||||
for (i = 0; hwinfos[i].name != NULL; i++)
|
||||
{
|
||||
if (!strcmp (normalized, hwinfos[i].name))
|
||||
if (!g_ascii_strcasecmp (normalized, hwinfos[i].name))
|
||||
{
|
||||
char canonical[32];
|
||||
|
||||
|
||||
Reference in new issue
Block a user