Fix IRC NickServ command syntax

This commit is contained in:
Yarmo Mackenbach 2021-05-21 15:27:35 +02:00
parent 892eccee7e
commit 44fd519658
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -61,13 +61,15 @@ if (jsEnv.isNode) {
port: 6697, port: 6697,
secure: true, secure: true,
channels: [], channels: [],
showErrors: false,
debug: false
}) })
const reKey = /[a-zA-Z0-9\-\_]+\s+:\s(openpgp4fpr\:.*)/ const reKey = /[a-zA-Z0-9\-\_]+\s+:\s(openpgp4fpr\:.*)/
const reEnd = /End\sof\s.*\staxonomy./ const reEnd = /End\sof\s.*\staxonomy./
let keys = [] let keys = []
client.addListener('registered', (message) => { client.addListener('registered', (message) => {
client.send(`PRIVMSG NickServ :TAXONOMY ${data.nick}`) client.send(`PRIVMSG NickServ TAXONOMY ${data.nick}`)
}) })
client.addListener('notice', (nick, to, text, message) => { client.addListener('notice', (nick, to, text, message) => {
if (reKey.test(text)) { if (reKey.test(text)) {