Skip to content

Commit 3c9f188

Browse files
committed
Allow admins to bypass 'extrapoints' room restriction
1 parent d02a26d commit 3c9f188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bot-modules/tour-ldb-custom/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ module.exports = {
826826
if (!this.can('ldbcustomconfig', this.room)) return this.replyAccessDenied('ldbcustomconfig');
827827
}
828828

829-
if (Config[leaderboardsId].room && Config[leaderboardsId].room !== room) {
829+
if (Config[leaderboardsId].room && Config[leaderboardsId].room !== room && !this.can('ldbcustomconfig', this.room)) {
830830
return this.errorReply(this.mlt(44) + " " + Chat.bold(Config[leaderboardsId].name || leaderboardsId) + " " + this.mlt(46) + " <<" + Config[leaderboardsId].room + ">>");
831831
}
832832

0 commit comments

Comments
 (0)