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-02-17 10:12:55 +00:00
parent d1e8fb33da
commit 3d9fd1c7f2
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;