input/raw: use the irc-framework api

We are not allowed to mess with the connection object directly
according to the public api surface of the framework
This commit is contained in:
Reto Brunner 2023-03-04 18:17:17 +01:00
parent 8ca9ee873b
commit 7f6059d5b7

View file

@ -4,7 +4,7 @@ const commands = ["raw", "send", "quote"];
const input: PluginInputHandler = function ({irc}, chan, cmd, args) {
if (args.length !== 0) {
irc.connection.write(args.join(" "));
irc.raw(...args);
}
return true;