From ff93ceee0db56da48f99b4185501796b67a65fd3 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 25 Mar 2021 16:27:57 +0100 Subject: [PATCH] Fix IRC fetch logic --- src/fetcher/irc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fetcher/irc.js b/src/fetcher/irc.js index 793f1da..6ba63f2 100644 --- a/src/fetcher/irc.js +++ b/src/fetcher/irc.js @@ -15,7 +15,7 @@ limitations under the License. */ const irc = require('irc-upd') -module.exports = async (nickQuery, opts) => { +module.exports = async (hostname, nickQuery, opts) => { let timeoutHandle const timeoutPromise = new Promise((resolve, reject) => { timeoutHandle = setTimeout( @@ -26,7 +26,7 @@ module.exports = async (nickQuery, opts) => { const fetchPromise = new Promise((resolve, reject) => { try { - const client = new irc.Client(opts.hostname, opts.nick, { + const client = new irc.Client(hostname, opts.nick, { port: 6697, secure: true, channels: [],