summaryrefslogtreecommitdiff
path: root/src/fe-common/core/module-formats.c
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2016-06-13 14:03:00 +0200
committerLemonBoy <thatlemon@gmail.com>2016-06-13 14:03:00 +0200
commit9a30ab53df226acb4586a2f214f3994a7b8b32ea (patch)
tree60853f484c23b0accffa5befec474789ae685b7f /src/fe-common/core/module-formats.c
parent6f795f020d5c374023dc9ca647b267aef0a76950 (diff)
downloadirssi-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.c1
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 },