summaryrefslogtreecommitdiffstats
path: root/cmd-switch-client.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-switch-client.c
parent877bdb46ed91580a3a4c430bc8c550314301352a (diff)
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-switch-client.c')
-rw-r--r--cmd-switch-client.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cmd-switch-client.c b/cmd-switch-client.c
index 99a1ae64..872570b0 100644
--- a/cmd-switch-client.c
+++ b/cmd-switch-client.c
@@ -71,13 +71,10 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq)
return (CMD_RETURN_ERROR);
if (args_has(args, 'r')) {
- if (c->flags & CLIENT_READONLY) {
+ if (c->flags & CLIENT_READONLY)
c->flags &= ~CLIENT_READONLY;
- cmdq_info(cmdq, "made client writable");
- } else {
+ else
c->flags |= CLIENT_READONLY;
- cmdq_info(cmdq, "made client read-only");
- }
}
tflag = args_get(args, 't');