X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fmessagehandler.c;h=ba76ed68520befedf1c9e0088055a80e2938b5c4;hb=2ae1e3a1e414732354074d163ee074c24ec9d3bb;hp=ae613dafb6d7be3fa30ba4caab9e3efcd57863d2;hpb=14a67bc74c81651015bbbad075f7eb1c41218cf7;p=umurmur.git diff --git a/src/messagehandler.c b/src/messagehandler.c index ae613da..ba76ed6 100644 --- a/src/messagehandler.c +++ b/src/messagehandler.c @@ -79,9 +79,15 @@ void Mh_handle_message(client_t *client, message_t *msg) } switch (msg->messageType) { case Authenticate: - Log_debug("Authenticate message received"); - Log_debug("Username: %s", msg->payload.authenticate->username); + + if (IS_AUTH(client) || !msg->payload.authenticate->username) { + /* Authenticate message might be sent when a token is set by the user.*/ + if (msg->payload.authenticate->n_tokens > 0) { + Log_debug("Tokens in auth message from %s", client->username); + } + break; + } client->authenticated = true;