Add /quiet and /unquiet
This commit is contained in:
parent
5507b3253b
commit
4249da4ba8
3 changed files with 26 additions and 0 deletions
21
commands.js
21
commands.js
|
@ -272,6 +272,20 @@ export default {
|
|||
app.open(nick);
|
||||
},
|
||||
},
|
||||
"quiet": {
|
||||
usage: "[nick]",
|
||||
description: "Quiet a user in the channel, or display the current quiet list",
|
||||
execute: (app, args) => {
|
||||
if (args.length == 0) {
|
||||
getActiveClient(app).send({
|
||||
command: "MODE",
|
||||
params: [getActiveChannel(app), "+q"],
|
||||
});
|
||||
} else {
|
||||
return setUserHostMode(app, args, "+q");
|
||||
}
|
||||
},
|
||||
},
|
||||
"quit": {
|
||||
description: "Quit",
|
||||
execute: (app, args) => {
|
||||
|
@ -344,6 +358,13 @@ export default {
|
|||
return setUserHostMode(app, args, "-b");
|
||||
},
|
||||
},
|
||||
"unquiet": {
|
||||
usage: "<nick>",
|
||||
description: "Remove a user from the quiet list",
|
||||
execute: (app, args) => {
|
||||
return setUserHostMode(app, args, "-q");
|
||||
},
|
||||
},
|
||||
"voice": {
|
||||
usage: "<nick>",
|
||||
description: "Give a user voiced status on this channel",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue