diff options
author | Thomas Adam <thomas@xteddy.org> | 2015-12-08 07:11:09 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2015-12-08 07:11:09 +0000 |
commit | 5862f59ed7c54959af6d112a647ae3c273579b77 (patch) | |
tree | 4cba465137c22437f602775f100d22b9ea9794cd /cmd-switch-client.c | |
parent | 98994a8bb1ca7602f16a5de0d4482efd299f5d7b (diff) | |
parent | d2fb0efcd197bf0d581a0f7b1e27223d095cb339 (diff) | |
download | rtmux-5862f59ed7c54959af6d112a647ae3c273579b77.tar.gz rtmux-5862f59ed7c54959af6d112a647ae3c273579b77.tar.bz2 rtmux-5862f59ed7c54959af6d112a647ae3c273579b77.zip |
Conflicts:
Makefile
Diffstat (limited to 'cmd-switch-client.c')
-rw-r--r-- | cmd-switch-client.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cmd-switch-client.c b/cmd-switch-client.c index dbdc5b63..4c847584 100644 --- a/cmd-switch-client.c +++ b/cmd-switch-client.c @@ -52,12 +52,8 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq) if ((c = cmd_find_client(cmdq, args_get(args, 'c'), 0)) == NULL) return (CMD_RETURN_ERROR); - if (args_has(args, 'r')) { - if (c->flags & CLIENT_READONLY) - c->flags &= ~CLIENT_READONLY; - else - c->flags |= CLIENT_READONLY; - } + if (args_has(args, 'r')) + c->flags ^= CLIENT_READONLY; tablename = args_get(args, 'T'); if (tablename != NULL) { |