Add /whowas command

This commit is contained in:
Simon Ser 2021-07-03 19:24:20 +02:00
parent 00eebc9859
commit 7b11b10955

View file

@ -395,4 +395,15 @@ export default {
markServerBufferUnread(app); 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);
},
},
}; };