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); + }, + }, };