mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
fix(package): update irc-framework to version 2.5.5
https://greenkeeper.io/
This commit is contained in:
parent
c5f16a4f41
commit
e2abbff7b0
2 changed files with 17 additions and 17 deletions
|
@ -47,7 +47,7 @@
|
|||
"event-stream": "3.3.4",
|
||||
"express": "4.14.0",
|
||||
"fs-extra": "1.0.0",
|
||||
"irc-framework": "2.5.3",
|
||||
"irc-framework": "2.5.5",
|
||||
"ldapjs": "1.0.1",
|
||||
"lodash": "4.17.4",
|
||||
"moment": "2.17.1",
|
||||
|
|
|
@ -246,22 +246,7 @@ Client.prototype.connect = function(args) {
|
|||
}
|
||||
}
|
||||
|
||||
network.irc = new ircFramework.Client();
|
||||
|
||||
network.irc.requestCap([
|
||||
"echo-message",
|
||||
"znc.in/self-message",
|
||||
]);
|
||||
|
||||
events.forEach(plugin => {
|
||||
var path = "./plugins/irc-events/" + plugin;
|
||||
require(path).apply(client, [
|
||||
network.irc,
|
||||
network
|
||||
]);
|
||||
});
|
||||
|
||||
network.irc.connect({
|
||||
network.irc = new ircFramework.Client({
|
||||
version: pkg.name + " " + Helper.getVersion() + " -- " + pkg.homepage,
|
||||
host: network.host,
|
||||
port: network.port,
|
||||
|
@ -272,12 +257,27 @@ Client.prototype.connect = function(args) {
|
|||
tls: network.tls,
|
||||
localAddress: config.bind,
|
||||
rejectUnauthorized: false,
|
||||
enable_echomessage: true,
|
||||
auto_reconnect: true,
|
||||
auto_reconnect_wait: 10000 + Math.floor(Math.random() * 1000), // If multiple users are connected to the same network, randomize their reconnections a little
|
||||
auto_reconnect_max_retries: 360, // At least one hour (plus timeouts) worth of reconnections
|
||||
webirc: webirc,
|
||||
});
|
||||
|
||||
network.irc.requestCap([
|
||||
"znc.in/self-message", // Legacy echo-message for ZNc
|
||||
]);
|
||||
|
||||
events.forEach(plugin => {
|
||||
var path = "./plugins/irc-events/" + plugin;
|
||||
require(path).apply(client, [
|
||||
network.irc,
|
||||
network
|
||||
]);
|
||||
});
|
||||
|
||||
network.irc.connect();
|
||||
|
||||
client.save();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue