Added '/invite' command

This commit is contained in:
Mattias Erming 2014-05-18 00:17:50 +02:00
parent 8d5514ea65
commit 8fe6110a93
3 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -8,6 +8,7 @@ $(function() {
"/deop", "/deop",
"/devoice", "/devoice",
"/disconnect", "/disconnect",
"/invite",
"/join", "/join",
"/kick", "/kick",
"/leave", "/leave",

View file

@ -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";