mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05: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:
parent
9e37659926
commit
e4f6e3dc75
@ -94,7 +94,7 @@ static void cmd_set(char *data)
|
|||||||
for (tmp = sets; tmp != NULL; tmp = tmp->next) {
|
for (tmp = sets; tmp != NULL; tmp = tmp->next) {
|
||||||
SETTINGS_REC *rec = tmp->data;
|
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))
|
(*value == '\0' && *key != '\0' && stristr(rec->key, key) == NULL))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user