v4.0.5
Security improvement
add a secure option
This options is optional AND enabled by default :
It denies files sent by bot with different name than the one requested.
How to use :
In command-line with --no-secure
option :
xdccJS --host irc.server.net --no-secure --download 1 --bot "SWEET|BOT"
Using the library :
let opts = {
host: 'irc.server.net',
secure: false
}
const xdccJS = new XDCC(opts)
Explanation :
Some IRC channels send files through different bot from the one you do the request,
- You query "SOURCE-BOT" for a file :
/MSG SOURCE-BOT xdcc send 23
- then "REPLICA-BOT" answer your request and sends you a file.
In this case you would need secure to be false
, but there's a risk :
- You query "SOURCE-BOT" for file :
/MSG SOURCE-BOT xdcc send 23
- Someone other than "REPLICA-BOT" sends you a file