Add /who
This commit is contained in:
parent
fff0907354
commit
e271a3cd0e
2 changed files with 12 additions and 1 deletions
|
@ -331,6 +331,13 @@ export default {
|
|||
description: "Gives a user voiced status on this channel",
|
||||
execute: (app, args) => givemode(app, args, "+v"),
|
||||
},
|
||||
"who": {
|
||||
usage: "[<mask> [o]]",
|
||||
description: "Retrieve a list of users",
|
||||
execute: (app, args) => {
|
||||
getActiveClient(app).send({ command: "WHO", params: args });
|
||||
},
|
||||
},
|
||||
"whois": {
|
||||
usage: "<nick>",
|
||||
description: "Retrieve information about a user",
|
||||
|
@ -339,7 +346,7 @@ export default {
|
|||
if (!nick) {
|
||||
throw new Error("Missing nick");
|
||||
}
|
||||
getActiveClient(app).whois(nick);
|
||||
getActiveClient(app).send({ command: "WHOIS", params: [nick] });
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue