Introduce a lexical block in case.
This commit is contained in:
committed by
Juliusz Chroboczek
parent
61b45ace5a
commit
33610e89f8
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user