~emersion/gamja

c98ad539d5fd8085ff934e5d262d13cfa6692b04 — Simon Ser 2 months ago 5188329
Add message arg to /query

Closes: https://todo.sr.ht/~emersion/gamja/94
1 files changed, 6 insertions(+), 1 deletions(-)

M commands.js
M commands.js => commands.js +6 -1
@@ 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": {