mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-13 11:45:40 -05:00
Fix inconsistent indentation (#4060)
This commit is contained in:
committed by
Guangcong Luo
parent
da0242a3f4
commit
398c7b66fe
@@ -640,8 +640,8 @@ let commands = {
|
||||
* --------------
|
||||
* Individual game commands for each Scavenger Game
|
||||
*/
|
||||
game: 'games',
|
||||
games: {
|
||||
game: 'games',
|
||||
games: {
|
||||
knockoutgames: 'kogames',
|
||||
kogames: function (target, room, user) {
|
||||
if (room.id !== 'scavengers') return this.errorReply("Scavenger games can only be created in the scavengers room.");
|
||||
|
||||
@@ -1248,13 +1248,13 @@ Punishments.isRoomBanned = function (user, roomid) {
|
||||
for (let ip in user.ips) {
|
||||
punishment = Punishments.roomIps.nestedGet(roomid, ip);
|
||||
if (punishment) {
|
||||
if (punishment[0] === 'ROOMBAN') {
|
||||
if (punishment[0] === 'ROOMBAN') {
|
||||
return punishment;
|
||||
} else if (punishment[0] === 'BLACKLIST') {
|
||||
} else if (punishment[0] === 'BLACKLIST') {
|
||||
if (Punishments.sharedIps.has(ip) && user.autoconfirmed) return;
|
||||
|
||||
return punishment;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user