forked from Mirrors/doipjs
Fix IRC NickServ command syntax
This commit is contained in:
parent
892eccee7e
commit
44fd519658
1 changed files with 3 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue