mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 12:03:11 +00:00
Added /send
This commit is contained in:
parent
c7de3a897d
commit
b1e5ac516d
4 changed files with 10 additions and 1 deletions
|
@ -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 a new issue