Commit 38a341de authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek
parent 1064c4a4
......@@ -691,7 +691,7 @@ function addUser(id, name) {
function delUser(id, name) {
if(!name)
name = null;
if(!id in users)
if(!(id in users))
throw new Error('Unknown user id');
if(users[id] !== name)
throw new Error('Inconsistent user name');
......
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