Fix several mistakes

This commit is contained in:
Yarmo Mackenbach 2021-04-15 21:50:49 +02:00
parent 91a3ed1e96
commit be258abf93
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
3 changed files with 4 additions and 1 deletions

View file

@ -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: [],

View file

@ -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

View file

@ -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