Added /send
This commit is contained in:
parent
c7de3a897d
commit
b1e5ac516d
|
@ -19,6 +19,7 @@ These are the commands currently implemented:
|
|||
- `/part`
|
||||
- `/query`
|
||||
- `/quit`
|
||||
- `/send`
|
||||
- `/server`
|
||||
- `/topic`
|
||||
- `/voice`
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
{{partial "users"}}
|
||||
</ul>
|
||||
</div>
|
||||
<form onSubmit="return false" data-target="{{id}}">
|
||||
<form class="form" onSubmit="return false" data-target="{{id}}">
|
||||
<input class="input">
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -18,6 +18,7 @@ $(function() {
|
|||
"/part",
|
||||
"/query",
|
||||
"/quit",
|
||||
"/send",
|
||||
"/server",
|
||||
"/topic",
|
||||
"/voice",
|
||||
|
|
|
@ -268,6 +268,13 @@ function input(data) {
|
|||
client.quit();
|
||||
}
|
||||
break;
|
||||
|
||||
// Send raw commands.
|
||||
case "send":
|
||||
if (client) {
|
||||
client.write(args.slice(1).join(" "));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue