diff options
author | Jilles Tjoelker <jilles@irssi.org> | 2009-02-21 21:17:51 +0000 |
---|---|---|
committer | jilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2009-02-21 21:17:51 +0000 |
commit | cb1f07352af92688983563998f9251ab20cac821 (patch) | |
tree | 9b01c36bec2240c4ba98f24bd5ed6a5a6ec60bd2 /src/core/log.c | |
parent | 946e7784b00c9051013b996bd09dcaf144cf250c (diff) | |
download | irssi-cb1f07352af92688983563998f9251ab20cac821.zip |
Reject invalid level specifications in /set.
Most of these have names that end in "_level".
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5021 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/log.c')
-rw-r--r-- | src/core/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/log.c b/src/core/log.c index 67ff24c1..106aafb8 100644 --- a/src/core/log.c +++ b/src/core/log.c @@ -540,7 +540,7 @@ static void log_read_config(void) log->handle = -1; log->fname = g_strdup(node->key); log->autoopen = config_node_get_bool(node, "auto_open", FALSE); - log->level = level2bits(config_node_get_str(node, "level", 0)); + log->level = level2bits(config_node_get_str(node, "level", 0), NULL); signal_emit("log config read", 2, log, node); |