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:
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);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user