1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-08 04:26:01 -04:00

/SET -default fix

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3277 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2004-08-19 18:55:15 +00:00 committed by cras
parent 9e37659926
commit e4f6e3dc75

View File

@ -94,7 +94,7 @@ static void cmd_set(char *data)
for (tmp = sets; tmp != NULL; tmp = tmp->next) {
SETTINGS_REC *rec = tmp->data;
if (((clear || *value != '\0') && g_strcasecmp(rec->key, key) != 0) ||
if (((clear || set_default || *value != '\0') && g_strcasecmp(rec->key, key) != 0) ||
(*value == '\0' && *key != '\0' && stristr(rec->key, key) == NULL))
continue;