hardlounge/server/plugins/inputs/raw.ts
Reto Brunner 7f6059d5b7 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
2023-03-04 18:17:17 +01:00

17 lines
266 B
TypeScript

import {PluginInputHandler} from "./index";
const commands = ["raw", "send", "quote"];
const input: PluginInputHandler = function ({irc}, chan, cmd, args) {
if (args.length !== 0) {
irc.raw(...args);
}
return true;
};
export default {
commands,
input,
};