mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Fix previous fix...
This commit is contained in:
parent
6239893bb0
commit
31d784cfd0
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user