From be258abf936cf8d5c4737f01d15ff22d12e990b1 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 15 Apr 2021 21:50:49 +0200 Subject: [PATCH] Fix several mistakes --- src/fetcher/irc.js | 3 ++- src/fetcher/twitter.js | 1 + src/fetcher/xmpp.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fetcher/irc.js b/src/fetcher/irc.js index 16eb640..7860e9e 100644 --- a/src/fetcher/irc.js +++ b/src/fetcher/irc.js @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ const irc = require('irc-upd') +const validator = require('validator') module.exports = async (data, opts) => { let timeoutHandle @@ -32,7 +33,7 @@ module.exports = async (data, opts) => { } try { - const client = new irc.Client(data.domain, opts.nick, { + const client = new irc.Client(data.domain, opts.claims.irc.nick, { port: 6697, secure: true, channels: [], diff --git a/src/fetcher/twitter.js b/src/fetcher/twitter.js index 1fcbeb0..569f50a 100644 --- a/src/fetcher/twitter.js +++ b/src/fetcher/twitter.js @@ -15,6 +15,7 @@ limitations under the License. */ const bent = require('bent') const bentReq = bent('GET') +const validator = require('validator') module.exports = async (data, opts) => { let timeoutHandle diff --git a/src/fetcher/xmpp.js b/src/fetcher/xmpp.js index ed02cf3..2e9fe85 100644 --- a/src/fetcher/xmpp.js +++ b/src/fetcher/xmpp.js @@ -16,6 +16,7 @@ limitations under the License. const jsdom = require('jsdom') const { client, xml } = require('@xmpp/client') const debug = require('@xmpp/debug') +const validator = require('validator') let xmpp = null, iqCaller = null