mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -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.
|
||||
*/
|
||||
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: [],
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue