From 426841e6b7c00c11d9c1739c2dfd77b422168893 Mon Sep 17 00:00:00 2001 From: JeDaYoshi Date: Sat, 3 Jul 2021 02:28:21 +0000 Subject: [PATCH] Add /umode support --- src/plugins/inputs/mode.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/inputs/mode.js b/src/plugins/inputs/mode.js index 4598a566..074629ef 100644 --- a/src/plugins/inputs/mode.js +++ b/src/plugins/inputs/mode.js @@ -3,10 +3,14 @@ const Chan = require("../../models/chan"); const Msg = require("../../models/msg"); -exports.commands = ["mode", "op", "deop", "hop", "dehop", "voice", "devoice"]; +exports.commands = ["mode", "umode", "op", "deop", "hop", "dehop", "voice", "devoice"]; exports.input = function ({irc, nick}, chan, cmd, args) { - if (cmd !== "mode") { + if (cmd === "umode") { + irc.raw("MODE", nick, ...args); + + return; + } else if (cmd !== "mode") { if (chan.type !== Chan.Type.CHANNEL) { chan.pushMessage( this,