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
This commit is contained in:
Jilles Tjoelker 2009-02-21 21:17:51 +00:00 committed by jilles
commit cb1f07352a
12 changed files with 26 additions and 12 deletions

View file

@ -81,7 +81,7 @@ static void cmd_echo(const char *data, void *server, WI_ITEM_REC *item)
levelstr = g_hash_table_lookup(optlist, "level");
level = levelstr == NULL ? 0 :
level2bits(g_hash_table_lookup(optlist, "level"));
level2bits(g_hash_table_lookup(optlist, "level"), NULL);
if (level == 0) level = MSGLEVEL_CRAP;
winname = g_hash_table_lookup(optlist, "window");