From 4196e627f9ccce7131c82c9cfaa6eb18d5c74c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sun, 31 Dec 2017 03:59:43 -0500 Subject: [PATCH] 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. --- src/plugins/inputs/ctcp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/inputs/ctcp.js b/src/plugins/inputs/ctcp.js index 06fb9566..ab89014b 100644 --- a/src/plugins/inputs/ctcp.js +++ b/src/plugins/inputs/ctcp.js @@ -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); } };