I pulled in the changes in the repo and there was still an error with extra braces (the }
character).
Please make sure in future you are getting these right, that's basic coding 101.
Make sure the stuff lines up as well as that makes it easier to spot missing braces. Each control statement like if, else, for and so on should have its contents indented one tab each time. Like this (just an example with a random bit of code):
for (x=0;x<badWords.length;x++) {
if (message.toLowerCase().indexOf(badWords[x]) > -1) {
user.countBadWords++;
if (user.countBadWords == 1) {
if ((!user.locked) && (!user.muted)) {
user.mute(room.id, 60000);
room.add('|html|<b>some stuff</b>');
connection.popup('some stuff');
return false;
}
}
}
In that case you can see there is a brace missing before the last line.