Add various checks to turn off bits that can't work in control mode

(such as lock).
This commit is contained in:
Nicholas Marriott
2013-03-21 18:47:01 +00:00
parent 49ac5b5fe0
commit c5504af4a6
3 changed files with 15 additions and 5 deletions

View File

@ -239,6 +239,9 @@ server_lock_client(struct client *c)
size_t cmdlen;
struct msg_lock_data lockdata;
if (!(c->flags & CLIENT_CONTROL))
return;
if (c->flags & CLIENT_SUSPENDED)
return;