From e416d74f571634252f7c4d8a3c6bdde0fcab79a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sun, 9 Oct 2016 15:15:20 -0400 Subject: [PATCH] Rename package variable, reserved in strict mode This has been renamed similarly in other files of the projects already. --- src/client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client.js b/src/client.js index 94730e53..6dc06c04 100644 --- a/src/client.js +++ b/src/client.js @@ -1,7 +1,7 @@ "use strict"; var _ = require("lodash"); -var package = require("../package.json"); +var pkg = require("../package.json"); var Chan = require("./models/chan"); var crypto = require("crypto"); var userLog = require("./userLog"); @@ -230,7 +230,7 @@ Client.prototype.connect = function(args) { } else { webirc = { password: config.webirc[network.host], - username: package.name, + username: pkg.name, address: args.ip, hostname: args.hostname }; @@ -257,7 +257,7 @@ Client.prototype.connect = function(args) { }); network.irc.connect({ - version: package.name + " " + package.version + " -- " + package.homepage, + version: pkg.name + " " + pkg.version + " -- " + pkg.homepage, host: network.host, port: network.port, nick: nick,