mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
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:
parent
946e7784b0
commit
cb1f07352a
12 changed files with 26 additions and 12 deletions
|
|
@ -513,7 +513,7 @@ static void handle_exec(const char *args, GHashTable *optlist,
|
|||
rec->name = g_strdup(g_hash_table_lookup(optlist, "name"));
|
||||
|
||||
level = g_hash_table_lookup(optlist, "level");
|
||||
rec->level = level == NULL ? MSGLEVEL_CLIENTCRAP : level2bits(level);
|
||||
rec->level = level == NULL ? MSGLEVEL_CLIENTCRAP : level2bits(level, NULL);
|
||||
|
||||
rec->read_tag = g_input_add(rec->in, G_INPUT_READ,
|
||||
(GInputFunction) sig_exec_input_reader,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue