mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 05:50:22 +00:00
Added '/whoami' command
This commit is contained in:
parent
5e3abe2347
commit
03d8510486
3 changed files with 7 additions and 2 deletions
|
@ -37,6 +37,7 @@ These are the commands currently implemented:
|
|||
- [x] /slap
|
||||
- [x] /topic
|
||||
- [x] /voice
|
||||
- [x] /whoami
|
||||
- [x] /whois
|
||||
|
||||
## Install
|
||||
|
|
|
@ -30,6 +30,7 @@ $(function() {
|
|||
"/slap",
|
||||
"/topic",
|
||||
"/voice",
|
||||
"/whoami",
|
||||
"/whois",
|
||||
];
|
||||
|
||||
|
|
|
@ -280,10 +280,13 @@ function input(data) {
|
|||
}
|
||||
break;
|
||||
|
||||
case "whoami":
|
||||
var user = client.me;
|
||||
case "query":
|
||||
case "whois":
|
||||
if (client && args[1]) {
|
||||
client.whois(args[1]);
|
||||
var user = user || args[1];
|
||||
if (client && user) {
|
||||
client.whois(user);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue