Rename package variable, reserved in strict mode
This has been renamed similarly in other files of the projects already.
This commit is contained in:
parent
caa46042bf
commit
e416d74f57
@ -1,7 +1,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var _ = require("lodash");
|
var _ = require("lodash");
|
||||||
var package = require("../package.json");
|
var pkg = require("../package.json");
|
||||||
var Chan = require("./models/chan");
|
var Chan = require("./models/chan");
|
||||||
var crypto = require("crypto");
|
var crypto = require("crypto");
|
||||||
var userLog = require("./userLog");
|
var userLog = require("./userLog");
|
||||||
@ -230,7 +230,7 @@ Client.prototype.connect = function(args) {
|
|||||||
} else {
|
} else {
|
||||||
webirc = {
|
webirc = {
|
||||||
password: config.webirc[network.host],
|
password: config.webirc[network.host],
|
||||||
username: package.name,
|
username: pkg.name,
|
||||||
address: args.ip,
|
address: args.ip,
|
||||||
hostname: args.hostname
|
hostname: args.hostname
|
||||||
};
|
};
|
||||||
@ -257,7 +257,7 @@ Client.prototype.connect = function(args) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
network.irc.connect({
|
network.irc.connect({
|
||||||
version: package.name + " " + package.version + " -- " + package.homepage,
|
version: pkg.name + " " + pkg.version + " -- " + pkg.homepage,
|
||||||
host: network.host,
|
host: network.host,
|
||||||
port: network.port,
|
port: network.port,
|
||||||
nick: nick,
|
nick: nick,
|
||||||
|
Loading…
Reference in New Issue
Block a user