mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
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,
|
||||
secure: true,
|
||||
channels: [],
|
||||
showErrors: false,
|
||||
debug: false
|
||||
})
|
||||
const reKey = /[a-zA-Z0-9\-\_]+\s+:\s(openpgp4fpr\:.*)/
|
||||
const reEnd = /End\sof\s.*\staxonomy./
|
||||
let keys = []
|
||||
|
||||
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) => {
|
||||
if (reKey.test(text)) {
|
||||
|
|
Loading…
Reference in a new issue