From f3a4ed8e5273efe1d4a1e1cc8439ee4566180748 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Thu, 6 Jul 2017 15:00:53 +0300 Subject: [PATCH] Fix losing network name when displayNetwork is false --- src/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.js b/src/client.js index fd01948f..a8502548 100644 --- a/src/client.js +++ b/src/client.js @@ -187,7 +187,7 @@ Client.prototype.connect = function(args) { args.hostname = args.hostname || (client.config && client.config.hostname) || client.hostname; var network = new Network({ - name: (config.displayNetwork ? args.name : config.defaults.name) || "", + name: args.name || (config.displayNetwork ? "" : config.defaults.name) || "", host: args.host || "", port: parseInt(args.port, 10) || (args.tls ? 6697 : 6667), tls: !!args.tls,