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` - `/part`
- `/query` - `/query`
- `/quit` - `/quit`
- `/send`
- `/server` - `/server`
- `/topic` - `/topic`
- `/voice` - `/voice`

View file

@ -68,7 +68,7 @@
{{partial "users"}} {{partial "users"}}
</ul> </ul>
</div> </div>
<form onSubmit="return false" data-target="{{id}}"> <form class="form" onSubmit="return false" data-target="{{id}}">
<input class="input"> <input class="input">
</form> </form>
</div> </div>

View file

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

View file

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