mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-23 06:59:29 -07:00
Fix several mistakes
This commit is contained in:
parent
91a3ed1e96
commit
be258abf93
3 changed files with 4 additions and 1 deletions
|
@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
const irc = require('irc-upd')
|
const irc = require('irc-upd')
|
||||||
|
const validator = require('validator')
|
||||||
|
|
||||||
module.exports = async (data, opts) => {
|
module.exports = async (data, opts) => {
|
||||||
let timeoutHandle
|
let timeoutHandle
|
||||||
|
@ -32,7 +33,7 @@ module.exports = async (data, opts) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const client = new irc.Client(data.domain, opts.nick, {
|
const client = new irc.Client(data.domain, opts.claims.irc.nick, {
|
||||||
port: 6697,
|
port: 6697,
|
||||||
secure: true,
|
secure: true,
|
||||||
channels: [],
|
channels: [],
|
||||||
|
|
|
@ -15,6 +15,7 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
const bent = require('bent')
|
const bent = require('bent')
|
||||||
const bentReq = bent('GET')
|
const bentReq = bent('GET')
|
||||||
|
const validator = require('validator')
|
||||||
|
|
||||||
module.exports = async (data, opts) => {
|
module.exports = async (data, opts) => {
|
||||||
let timeoutHandle
|
let timeoutHandle
|
||||||
|
|
|
@ -16,6 +16,7 @@ limitations under the License.
|
||||||
const jsdom = require('jsdom')
|
const jsdom = require('jsdom')
|
||||||
const { client, xml } = require('@xmpp/client')
|
const { client, xml } = require('@xmpp/client')
|
||||||
const debug = require('@xmpp/debug')
|
const debug = require('@xmpp/debug')
|
||||||
|
const validator = require('validator')
|
||||||
|
|
||||||
let xmpp = null,
|
let xmpp = null,
|
||||||
iqCaller = null
|
iqCaller = null
|
||||||
|
|
Loading…
Reference in a new issue