summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-05-11 19:53:56 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-05-11 19:53:56 +0000
commit3bd6666aea146772e8afdc10dbfbaa7a2b63235d (patch)
treedf9f6e6d43e805bac2159c6af75304230696e88a /src
parent8d6d0ee43e2726f6e3863dff1b8bc39d20d18996 (diff)
downloadirssi-3bd6666aea146772e8afdc10dbfbaa7a2b63235d.zip
Don't crash if config file had keyboard = { .. } in it
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1491 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/keyboard.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c
index ae234621..3fdf7d97 100644
--- a/src/fe-common/core/keyboard.c
+++ b/src/fe-common/core/keyboard.c
@@ -750,10 +750,8 @@ static void read_keyboard_config(void)
}
/* FIXME: backward "compatibility" - remove after irssi .99 */
- tmp = node->value;
- if (tmp != NULL &&
- config_node_get_str(tmp->data, "key", NULL) == NULL) {
- iconfig_node_clear(node);
+ if (node->type != NODE_TYPE_LIST) {
+ iconfig_node_remove(NULL, node);
key_configure_thaw();
return;
}