From 6fa48d3acfd3081c03a825f51ffdf266dbcc5c54 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 7 Mar 2018 09:13:06 +0200 Subject: [PATCH] Remove setMaxListeners Reverts 2cee0ea6ef5ee51de0190332f976934b55bbc8e4 as this no longer causes the EventEmitter warning due to `maxRedirects` being set to 5 on our end. Ref: https://github.com/request/request/issues/311#issuecomment-153507416 --- src/plugins/irc-events/link.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/irc-events/link.js b/src/plugins/irc-events/link.js index 50cfeedf..f46ea1f3 100644 --- a/src/plugins/irc-events/link.js +++ b/src/plugins/irc-events/link.js @@ -9,8 +9,6 @@ const cleanIrcMessage = require("../../../client/js/libs/handlebars/ircmessagepa const findLinks = require("../../../client/js/libs/handlebars/ircmessageparser/findLinks"); const storage = require("../storage"); -process.setMaxListeners(0); - // Fix ECDH curve client compatibility in Node v8/v9 // This is fixed in Node 10, but The Lounge supports LTS versions // https://github.com/nodejs/node/issues/16196