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:
parent
f5debac388
commit
121d7ec075
3 changed files with 54 additions and 0 deletions
11
commands.js
11
commands.js
|
@ -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);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue