thelounge/src/plugins/inputs/ctcp.js
Jérémie Astori 4196e627f9 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.
2018-02-19 18:43:52 +02:00

10 lines
154 B
JavaScript

"use strict";
exports.commands = ["ctcp"];
exports.input = function({irc}, chan, cmd, args) {
if (args.length > 1) {
irc.ctcpRequest(...args);
}
};