~emersion/gamja

7b11b109556a2c8242b247faf3aa274b50e02a72 — Simon Ser 4 months ago 00eebc9
Add /whowas command
1 files changed, 11 insertions(+), 0 deletions(-)

M commands.js
M commands.js => commands.js +11 -0
@@ 395,4 395,15 @@ export default {
			markServerBufferUnread(app);
		},
	},
	"whowas": {
		usage: "<nick> [count]",
		description: "Retrieve information about an offline user",
		execute: (app, args) => {
			if (args.length < 1) {
				throw new Error("Missing nick");
			}
			getActiveClient(app).send({ command: "WHOWAS", params: args });
			markServerBufferUnread(app);
		},
	},
};