Implement commands /lock and /unlock.

This commit is contained in:
Juliusz Chroboczek
2020-05-18 15:24:04 +02:00
parent 037f002a29
commit 12858e1f36
3 changed files with 25 additions and 0 deletions
+10
View File
@@ -888,6 +888,16 @@ function handleInput() {
type: 'clearchat',
});
return;
case '/lock':
case '/unlock':
if(!permissions.op) {
displayError("You're not an operator");
return;
}
send({
type: cmd === '/lock' ? 'lock' : 'unlock',
});
return;
case '/op':
case '/unop':
case '/kick':