diff options
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/client.c b/client.c index f7fff33..198f1f6 100644 --- a/client.c +++ b/client.c @@ -114,9 +114,13 @@ static void handleUser(struct Client *client, struct Message *msg) { client->error = true; return; } - client->consumer = ringConsumer(msg->params[0]); - client->need &= ~NeedUser; - sync(client); + if (client->need & NeedPass) { + passRequired(client); + } else { + client->need &= ~NeedUser; + client->consumer = ringConsumer(msg->params[0]); + sync(client); + } } static void handlePass(struct Client *client, struct Message *msg) { |