thelounge/src/plugins/inputs/kill.ts
2022-05-21 11:50:55 -07:00

18 lines
297 B
TypeScript

"use strict";
import {PluginInputHandler} from "./index";
const commands = ["kill"];
const input: PluginInputHandler = function ({irc}, chan, cmd, args) {
if (args.length !== 0) {
irc.raw("KILL", args[0], args.slice(1).join(" "));
}
return true;
};
export default {
commands,
input,
};