From e0cde27d6622ae24471411c7bfca86cc763be7e0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 23 May 2021 11:41:04 +0200 Subject: [PATCH] Add simple /mode command --- commands.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/commands.js b/commands.js index b9309da..872148e 100644 --- a/commands.js +++ b/commands.js @@ -69,6 +69,13 @@ export default { app.privmsg(activeBuffer.name, text); }, }, + "mode": { + usage: " [mode args...]", + description: "Change channel or user mode", + execute: (app, args) => { + getActiveClient(app).send({ command: "MODE", params: args }); + }, + }, "msg": { usage: " ", description: "Send a message to a nickname or a channel",