diff --git a/command-parser.js b/command-parser.js index c2fc942981..ba0c288a53 100644 --- a/command-parser.js +++ b/command-parser.js @@ -292,7 +292,7 @@ function canTalk(user, room, connection, message) { connection.sendTo(room, "Because moderated chat is set, your account must be at least one week old and you must have won at least one ladder game to speak in this room."); return false; } else if (Config.groupsranking.indexOf(userGroup) < Config.groupsranking.indexOf(room.modchat)) { - var groupName = Config.groups[room.modchat].name || groupName = room.modchat; + var groupName = Config.groups[room.modchat].name || room.modchat; connection.sendTo(room, "Because moderated chat is set, you must be of rank " + groupName + " or higher to speak in this room."); return false; }