diff --git a/README.md b/README.md index 75f3752a..b2b5074b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ These are the commands currently implemented: - [x] /devoice - [x] /disconnect - [ ] /help -- [ ] /invite +- [x] /invite - [x] /join - [x] /kick - [x] /leave diff --git a/client/js/chat.js b/client/js/chat.js index ab73402b..823c63fc 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -8,6 +8,7 @@ $(function() { "/deop", "/devoice", "/disconnect", + "/invite", "/join", "/kick", "/leave", diff --git a/lib/server.js b/lib/server.js index 4dc9025d..2200bd26 100644 --- a/lib/server.js +++ b/lib/server.js @@ -228,6 +228,12 @@ function input(data) { client.part(part.join(",")); break; + case "invite": + if (client && args[2]) { + client.invite(args[1], args[2]); + } + break; + case "topic": if (client) { var msg = "TOPIC";