From bcef115c07b954fade8cc33e4784cd4525c82dc7 Mon Sep 17 00:00:00 2001
From: Xabier de Zuazo <xabier@onddo.com>
Date: Sun, 7 Apr 2013 12:02:31 +0200
Subject: [PATCH] debug message printing when you are trying to connect to an
 online server without credentials

---
 index.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/index.js b/index.js
index e1e7c32..1420f4c 100644
--- a/index.js
+++ b/index.js
@@ -267,6 +267,9 @@ function createClient(options) {
       if (haveCredentials) {
         joinServerRequest(onJoinServerResponse);
       } else {
+        if (packet.serverId != '-') {
+          debug('This server appears to be an online server and you are providing no password, the authentication will probably fail');
+        }
         sendEncryptionKeyResponse();
       }