mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-28 18:26:19 -05:00
Add support for /mode without arguments
This commit is contained in:
parent
5b7ab2652b
commit
dd753aab2e
1 changed files with 3 additions and 3 deletions
|
@ -179,11 +179,11 @@ export default {
|
|||
},
|
||||
},
|
||||
"mode": {
|
||||
usage: "[target] <modes> [mode args...]",
|
||||
description: "Change channel or user mode",
|
||||
usage: "[target] [modes] [mode args...]",
|
||||
description: "Query or change a channel or user mode",
|
||||
execute: (app, args) => {
|
||||
var target = args[0];
|
||||
if (target.startsWith("+") || target.startsWith("-")) {
|
||||
if (!target || target.startsWith("+") || target.startsWith("-")) {
|
||||
var activeChannel = getActiveChannel(app);
|
||||
args = [activeChannel, ...args];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue