From 8910e742814b42b523c8546565c1edd4cff1afd7 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 d8d6b6760d..90513ea68d 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;