Fix CTCP commands always sent upper-case

This is a Node v6+ only fix.
`irc-framework` upper-cases the first argument, and we were sending everything as a string in first argument. This correctly splits.
This commit is contained in:
Jérémie Astori 2017-12-31 03:59:43 -05:00 committed by Pavel Djundik
parent 0044be266e
commit 4196e627f9

View File

@ -4,6 +4,6 @@ exports.commands = ["ctcp"];
exports.input = function({irc}, chan, cmd, args) {
if (args.length > 1) {
irc.ctcpRequest(args[0], args.slice(1).join(" "));
irc.ctcpRequest(...args);
}
};