mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 05:50:22 +00:00
7f6059d5b7
We are not allowed to mess with the connection object directly according to the public api surface of the framework
16 lines
266 B
TypeScript
16 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,
|
|
};
|