Add /whois command

This also rigs up some helpers in Client for handling the whois
response, which I will use for /ban and /quiet and such shortly.
This commit is contained in:
Drew DeVault 2021-05-27 16:02:07 -04:00 committed by Simon Ser
parent f5debac388
commit 121d7ec075
3 changed files with 54 additions and 0 deletions

View file

@ -258,4 +258,15 @@ export default {
getActiveClient(app).send({ command: "TOPIC", params });
},
},
"whois": {
usage: "<nick>",
description: "Retrieve information about a user",
execute: (app, args) => {
var nick = args[0];
if (!nick) {
throw new Error("Missing nick");
}
getActiveClient(app).whois(nick);
},
},
};