From 48ce92bdcf1c3a1d40dc9da94893aa6fbb868f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Mon, 2 May 2016 01:11:57 -0400 Subject: [PATCH] Make sure app does not crash when webirc is not defined in the configuration --- src/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.js b/src/client.js index d8d6b676..90513ea6 100644 --- a/src/client.js +++ b/src/client.js @@ -172,7 +172,7 @@ Client.prototype.connect = function(args) { return; } - if (config.webirc !== null && network.host in config.webirc) { + if (config.webirc && network.host in config.webirc) { args.ip = args.ip || (client.config && client.config.ip) || client.ip; args.hostname = args.hostname || (client.config && client.config.hostname) || client.hostname || args.ip;