summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@irssi.org>2009-02-21 21:17:51 +0000
committerjilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564>2009-02-21 21:17:51 +0000
commitcb1f07352af92688983563998f9251ab20cac821 (patch)
tree9b01c36bec2240c4ba98f24bd5ed6a5a6ec60bd2 /src/fe-text
parent946e7784b00c9051013b996bd09dcaf144cf250c (diff)
downloadirssi-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/fe-text')
-rw-r--r--src/fe-text/textbuffer-commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/textbuffer-commands.c b/src/fe-text/textbuffer-commands.c
index a99b4af4..648862e7 100644
--- a/src/fe-text/textbuffer-commands.c
+++ b/src/fe-text/textbuffer-commands.c
@@ -146,7 +146,7 @@ static void cmd_scrollback_levelclear(const char *data)
levelarg = g_hash_table_lookup(optlist, "level");
level = (levelarg == NULL || *levelarg == '\0') ? 0 :
- level2bits(replace_chars(levelarg, ',', ' '));
+ level2bits(replace_chars(levelarg, ',', ' '), NULL);
if (level == 0) {
cmd_params_free(free_arg);
return;