Merge pull request #3123 from kramerc/kill-cmd

Add support for /kill
This commit is contained in:
Pavel Djundik 2019-03-16 22:20:03 +02:00 committed by GitHub
commit fc2b8d94e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -53,6 +53,7 @@ const inputs = [
"ignore", "ignore",
"invite", "invite",
"kick", "kick",
"kill",
"mode", "mode",
"nick", "nick",
"notice", "notice",

View File

@ -0,0 +1,11 @@
"use strict";
exports.commands = ["kill"];
exports.input = function({irc}, chan, cmd, args) {
if (args.length !== 0) {
irc.raw("KILL", args[0], args.slice(1).join(" "));
}
return true;
};