From 848fcd2c2b88685cdcbb6dee4e8e226129ca745d Mon Sep 17 00:00:00 2001 From: Lionyx Date: Wed, 23 Nov 2016 00:01:25 +0100 Subject: [PATCH] Roomsettings: Change variable spelling (#2935) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit minor syntaxic change "atuh" → "auth" --- chat-plugins/roomsettings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat-plugins/roomsettings.js b/chat-plugins/roomsettings.js index e73200c083..7bd8311a90 100644 --- a/chat-plugins/roomsettings.js +++ b/chat-plugins/roomsettings.js @@ -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]}`)); }