Implement recording.

This commit is contained in:
Juliusz Chroboczek
2020-05-30 00:23:54 +02:00
parent c1ab839f02
commit 0a2c4eb381
4 changed files with 94 additions and 18 deletions
+11 -1
View File
@@ -933,7 +933,17 @@ function handleInput() {
return;
}
send({
type: cmd === '/lock' ? 'lock' : 'unlock',
type: cmd.slice(1),
});
return;
case '/record':
case '/unrecord':
if(!permissions.record) {
displayError("You're not allowed to record");
return;
}
send({
type: cmd.slice(1),
});
return;
case '/op':