mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 14:44:13 +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`
|
- `/part`
|
||||||
- `/query`
|
- `/query`
|
||||||
- `/quit`
|
- `/quit`
|
||||||
|
- `/send`
|
||||||
- `/server`
|
- `/server`
|
||||||
- `/topic`
|
- `/topic`
|
||||||
- `/voice`
|
- `/voice`
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -18,6 +18,7 @@ $(function() {
|
||||||
"/part",
|
"/part",
|
||||||
"/query",
|
"/query",
|
||||||
"/quit",
|
"/quit",
|
||||||
|
"/send",
|
||||||
"/server",
|
"/server",
|
||||||
"/topic",
|
"/topic",
|
||||||
"/voice",
|
"/voice",
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue