mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
Added '/invite' command
This commit is contained in:
parent
8d5514ea65
commit
8fe6110a93
3 changed files with 8 additions and 1 deletions
|
@ -11,7 +11,7 @@ These are the commands currently implemented:
|
||||||
- [x] /devoice
|
- [x] /devoice
|
||||||
- [x] /disconnect
|
- [x] /disconnect
|
||||||
- [ ] /help
|
- [ ] /help
|
||||||
- [ ] /invite
|
- [x] /invite
|
||||||
- [x] /join
|
- [x] /join
|
||||||
- [x] /kick
|
- [x] /kick
|
||||||
- [x] /leave
|
- [x] /leave
|
||||||
|
|
|
@ -8,6 +8,7 @@ $(function() {
|
||||||
"/deop",
|
"/deop",
|
||||||
"/devoice",
|
"/devoice",
|
||||||
"/disconnect",
|
"/disconnect",
|
||||||
|
"/invite",
|
||||||
"/join",
|
"/join",
|
||||||
"/kick",
|
"/kick",
|
||||||
"/leave",
|
"/leave",
|
||||||
|
|
|
@ -228,6 +228,12 @@ function input(data) {
|
||||||
client.part(part.join(","));
|
client.part(part.join(","));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "invite":
|
||||||
|
if (client && args[2]) {
|
||||||
|
client.invite(args[1], args[2]);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case "topic":
|
case "topic":
|
||||||
if (client) {
|
if (client) {
|
||||||
var msg = "TOPIC";
|
var msg = "TOPIC";
|
||||||
|
|
Loading…
Reference in a new issue