Added /send

This commit is contained in:
Mattias Erming 2014-05-07 21:30:14 +02:00
parent c7de3a897d
commit b1e5ac516d
4 changed files with 10 additions and 1 deletions

View file

@ -19,6 +19,7 @@ These are the commands currently implemented:
- `/part`
- `/query`
- `/quit`
- `/send`
- `/server`
- `/topic`
- `/voice`

View file

@ -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>

View file

@ -18,6 +18,7 @@ $(function() {
"/part",
"/query",
"/quit",
"/send",
"/server",
"/topic",
"/voice",

View file

@ -268,6 +268,13 @@ function input(data) {
client.quit();
}
break;
// Send raw commands.
case "send":
if (client) {
client.write(args.slice(1).join(" "));
}
break;
}
}