From 7b11b109556a2c8242b247faf3aa274b50e02a72 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 3 Jul 2021 19:24:20 +0200 Subject: [PATCH] Add /whowas command --- commands.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/commands.js b/commands.js index 688033b..945fcf8 100644 --- a/commands.js +++ b/commands.js @@ -395,4 +395,15 @@ export default { markServerBufferUnread(app); }, }, + "whowas": { + usage: " [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); + }, + }, };