diff --git a/commands.js b/commands.js index 6ba15b9d1b..0a896ce235 100644 --- a/commands.js +++ b/commands.js @@ -888,7 +888,7 @@ exports.commands = { return this.errorReply("Room bans are not meant to be used in room " + room.id + "."); } if (room.bannedUsers[userid] && room.bannedIps[targetUser.latestIp]) return this.sendReply("User " + targetUser.name + " is already banned from room " + room.id + "."); - if (targetUser in room.users) { + if (targetUser in room.users || user.can('lock')) { targetUser.popup( "|html|
" + Tools.escapeHTML(user.name) + " has banned you from the room " + room.id + ".
" + (target ? "Reason: " + Tools.escapeHTML(target) + "
" : "") + "To appeal the ban, PM the staff member that banned you" + (room.auth ? " or a room owner.
" : ".")