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:
parent
0044be266e
commit
4196e627f9
@ -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);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user