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:
|
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
|
||||||
|
@ -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",
|
||||||
|
@ -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(" "));
|
||||||
|
Loading…
Reference in New Issue
Block a user