From 33610e89f80cf14e5f928825907624be6b41f406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Sun, 10 May 2020 21:18:12 +0200 Subject: [PATCH] Introduce a lexical block in case. --- static/sfu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/sfu.js b/static/sfu.js index f7f6322..c6f0f43 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -872,7 +872,7 @@ function handleInput() { case '/unop': case '/kick': case '/present': - case '/unpresent': + case '/unpresent': { if(!permissions.op) { displayError("You're not an operator"); return; @@ -897,6 +897,7 @@ function handleInput() { id: id, }); return; + } default: displayError('Uknown command ' + cmd); return;