Added some command aliases

This commit is contained in:
Mattias Erming 2014-05-15 23:58:50 +02:00
parent f320d4c208
commit 3497bfc39f
3 changed files with 7 additions and 3 deletions

View File

@ -5,7 +5,7 @@ Run your IRC client on a server and access it from the web browser. This gives y
These are the commands currently implemented: These are the commands currently implemented:
- [ ] /ame - [ ] /ame
- [ ] /amsg - [ ] /amsg
- [ ] /close - [x] /close
- [x] /connect - [x] /connect
- [x] /deop - [x] /deop
- [x] /devoice - [x] /devoice
@ -25,7 +25,7 @@ These are the commands currently implemented:
- [ ] /partall - [ ] /partall
- [x] /query - [x] /query
- [x] /quit - [x] /quit
- [ ] /raw - [x] /raw
- [x] /say - [x] /say
- [x] /send - [x] /send
- [x] /server - [x] /server

View File

@ -3,6 +3,7 @@ $(function() {
var sidebar = $("#sidebar"); var sidebar = $("#sidebar");
var commands = [ var commands = [
"/close",
"/connect", "/connect",
"/deop", "/deop",
"/devoice", "/devoice",
@ -18,6 +19,7 @@ $(function() {
"/part", "/part",
"/query", "/query",
"/quit", "/quit",
"/raw",
"/say", "/say",
"/send", "/send",
"/server", "/server",

View File

@ -200,6 +200,7 @@ function input(data) {
} }
break; break;
case "close":
case "leave": case "leave":
case "part": case "part":
var id = chan.id; var id = chan.id;
@ -275,7 +276,8 @@ function input(data) {
} }
break; break;
// Send raw commands. // Send raw IRC messages.
case "raw":
case "send": case "send":
if (client) { if (client) {
client.write(args.slice(1).join(" ")); client.write(args.slice(1).join(" "));