mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-25 00:58:08 -05:00
Add message arg to /query
Closes: https://todo.sr.ht/~emersion/gamja/94
This commit is contained in:
parent
51883292f9
commit
c98ad539d5
1 changed files with 6 additions and 1 deletions
|
@ -262,7 +262,7 @@ export default {
|
|||
},
|
||||
},
|
||||
"query": {
|
||||
usage: "<nick>",
|
||||
usage: "<nick> [message]",
|
||||
description: "Open a buffer to send messages to a nickname",
|
||||
execute: (app, args) => {
|
||||
let nick = args[0];
|
||||
|
@ -270,6 +270,11 @@ export default {
|
|||
throw new Error("Missing nickname");
|
||||
}
|
||||
app.open(nick);
|
||||
|
||||
if (args.length > 1) {
|
||||
var text = args.slice(1).join(" ");
|
||||
app.privmsg(nick, text);
|
||||
}
|
||||
},
|
||||
},
|
||||
"quiet": {
|
||||
|
|
Loading…
Reference in a new issue