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:
- [ ] /ame
- [ ] /amsg
- [ ] /close
- [x] /close
- [x] /connect
- [x] /deop
- [x] /devoice
@ -25,7 +25,7 @@ These are the commands currently implemented:
- [ ] /partall
- [x] /query
- [x] /quit
- [ ] /raw
- [x] /raw
- [x] /say
- [x] /send
- [x] /server

View File

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

View File

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