Skip to content

Commit

Permalink
Merge pull request thelounge#294 from thelounge/astorije/fix-webirc-c…
Browse files Browse the repository at this point in the history
…onfig

Make sure app does not crash when webirc is not defined in the configuration
  • Loading branch information
maxpoulin64 committed May 2, 2016
2 parents de99de3 + 8910e74 commit fead822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fead822

Please sign in to comment.