From 7f6059d5b7e65960812e749733358ee2f760b032 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 4 Mar 2023 18:17:17 +0100 Subject: [PATCH] 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 --- server/plugins/inputs/raw.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins/inputs/raw.ts b/server/plugins/inputs/raw.ts index b682255c..4d89bd67 100644 --- a/server/plugins/inputs/raw.ts +++ b/server/plugins/inputs/raw.ts @@ -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;