Added some command aliases
This commit is contained in:
parent
f320d4c208
commit
3497bfc39f
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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(" "));
|
||||
|
Loading…
Reference in New Issue
Block a user