diff options
author | LemonBoy <thatlemon@gmail.com> | 2016-06-13 14:03:00 +0200 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2016-06-13 14:03:00 +0200 |
commit | 9a30ab53df226acb4586a2f214f3994a7b8b32ea (patch) | |
tree | 60853f484c23b0accffa5befec474789ae685b7f /src/fe-common/core/module-formats.c | |
parent | 6f795f020d5c374023dc9ca647b267aef0a76950 (diff) | |
download | irssi-9a30ab53df226acb4586a2f214f3994a7b8b32ea.zip |
Move the validation of the CHOICE setting value
Also, use a FORMAT to show the error message.
Diffstat (limited to 'src/fe-common/core/module-formats.c')
-rw-r--r-- | src/fe-common/core/module-formats.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fe-common/core/module-formats.c b/src/fe-common/core/module-formats.c index b897b0c6..5c07f14c 100644 --- a/src/fe-common/core/module-formats.c +++ b/src/fe-common/core/module-formats.c @@ -221,6 +221,7 @@ FORMAT_REC fecommon_core_formats[] = { { "invalid_level", "Invalid message level", 0 }, { "invalid_size", "Invalid size", 0 }, { "invalid_charset", "Invalid charset: $0", 1, { 0 } }, + { "invalid_choice", "Invalid choice, must be one of $0", 1, { 0 } }, { "eval_max_recurse", "/eval hit maximum recursion limit", 0 }, { "program_not_found", "Could not find file or file is not executable", 0 }, { "no_server_defined", "No servers defined for this network, see /help server for how to add one", 0 }, |