From 8fe6110a93919c0ea5224f292c346042de726b08 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Sun, 18 May 2014 00:17:50 +0200 Subject: [PATCH] Added '/invite' command --- README.md | 2 +- client/js/chat.js | 1 + lib/server.js | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) 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";