Commit 33610e89 authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek

Introduce a lexical block in case.

parent 61b45ace
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment