Fix previous fix...

This commit is contained in:
小太 2014-04-22 02:51:32 +10:00
parent 6239893bb0
commit 31d784cfd0

View File

@ -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;
}