aboutsummaryrefslogtreecommitdiff
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authornicm <nicm>2014-04-17 07:55:43 +0000
committernicm <nicm>2014-04-17 07:55:43 +0000
commit2740490e279bac7b01f18cc39aa59a5de09e3a95 (patch)
tree664689226d287ee21d97062c53fc1ef17464dda1 /cmd-set-option.c
parent877bdb46ed91580a3a4c430bc8c550314301352a (diff)
downloadrtmux-2740490e279bac7b01f18cc39aa59a5de09e3a95.tar.gz
rtmux-2740490e279bac7b01f18cc39aa59a5de09e3a95.tar.bz2
rtmux-2740490e279bac7b01f18cc39aa59a5de09e3a95.zip
Remove the "info" message mechanism, this was only used for about five
mostly useless and annoying messages. Change those commands to silence on success like all the others. Still accept the -q command line flag and "quiet" server option for now.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c
index 67eb8083..3107746c 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -259,10 +259,6 @@ cmd_set_option_user(struct cmd *self, struct cmd_q *cmdq, const char* optstr,
return (CMD_RETURN_NORMAL);
}
options_set_string(oo, optstr, "%s", valstr);
- if (!args_has(args, 'q')) {
- cmdq_info(cmdq, "set option: %s -> %s", optstr,
- valstr);
- }
}
return (CMD_RETURN_NORMAL);
}
@@ -285,8 +281,6 @@ cmd_set_option_unset(struct cmd *self, struct cmd_q *cmdq,
}
options_remove(oo, oe->name);
- if (!args_has(args, 'q'))
- cmdq_info(cmdq, "unset option: %s", oe->name);
return (0);
}
@@ -295,9 +289,7 @@ int
cmd_set_option_set(struct cmd *self, struct cmd_q *cmdq,
const struct options_table_entry *oe, struct options *oo, const char *value)
{
- struct args *args = self->args;
struct options_entry *o;
- const char *s;
if (oe->type != OPTIONS_TABLE_FLAG && value == NULL) {
cmdq_error(cmdq, "empty value");
@@ -337,10 +329,6 @@ cmd_set_option_set(struct cmd *self, struct cmd_q *cmdq,
}
if (o == NULL)
return (-1);
-
- s = options_table_print_entry(oe, o, 0);
- if (!args_has(args, 'q'))
- cmdq_info(cmdq, "set option: %s -> %s", oe->name, s);
return (0);
}