Add simple /mode command

This commit is contained in:
Simon Ser 2021-05-23 11:41:04 +02:00
parent 22e54dac56
commit e0cde27d66

View file

@ -69,6 +69,13 @@ export default {
app.privmsg(activeBuffer.name, text); app.privmsg(activeBuffer.name, text);
}, },
}, },
"mode": {
usage: "<target> <modes> [mode args...]",
description: "Change channel or user mode",
execute: (app, args) => {
getActiveClient(app).send({ command: "MODE", params: args });
},
},
"msg": { "msg": {
usage: "<target> <message>", usage: "<target> <message>",
description: "Send a message to a nickname or a channel", description: "Send a message to a nickname or a channel",