mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-28 12:04:28 -05:00
Roomsettings: Change variable spelling (#2935)
minor syntaxic change "atuh" → "auth"
This commit is contained in:
@@ -45,10 +45,10 @@ class RoomSettings {
|
||||
} else if (RANKS[i]) {
|
||||
let rankIndex = RANKS.indexOf(RANKS[i]);
|
||||
let roomAuth = (this.room.auth && this.room.auth[this.user.userid] ? this.room.auth[this.user.userid] : false);
|
||||
let roomAtuhIndex = (roomAuth ? RANKS.indexOf(roomAuth) : false);
|
||||
let roomAuthIndex = (roomAuth ? RANKS.indexOf(roomAuth) : false);
|
||||
if (rankIndex > 1 && !this.user.can('modchatall', null, this.room)) continue;
|
||||
if (roomAuth && !this.user.can('bypassall')) {
|
||||
if (rankIndex > roomAtuhIndex) continue;
|
||||
if (rankIndex > roomAuthIndex) continue;
|
||||
}
|
||||
modchatOutput.push(this.button(RANKS[i], null, `modchat ${RANKS[i]}`));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user