Make message-limit a server option.

This commit is contained in:
nicm
2014-03-31 21:41:35 +00:00
parent 1704d4a6b7
commit dca7d1c0fd
3 changed files with 13 additions and 17 deletions

View File

@ -81,6 +81,13 @@ const struct options_table_entry server_options_table[] = {
.default_num = 0
},
{ .name = "message-limit",
.type = OPTIONS_TABLE_NUMBER,
.minimum = 0,
.maximum = INT_MAX,
.default_num = 100
},
{ .name = "quiet",
.type = OPTIONS_TABLE_FLAG,
.default_num = 0 /* overridden in main() */
@ -243,13 +250,6 @@ const struct options_table_entry session_options_table[] = {
.style = "message-style"
},
{ .name = "message-limit",
.type = OPTIONS_TABLE_NUMBER,
.minimum = 0,
.maximum = INT_MAX,
.default_num = 20
},
{ .name = "message-style",
.type = OPTIONS_TABLE_STYLE,
.default_str = "bg=yellow,fg=black"