mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-27 11:34:40 -05:00
Roombans by global auth always give popup
Previously, roombans wouldn't give a popup when they were given to users not in the room. This makes it so roombans done by global auth still give the message.
This commit is contained in:
@@ -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|<p>" + Tools.escapeHTML(user.name) + " has banned you from the room " + room.id + ".</p>" + (target ? "<p>Reason: " + Tools.escapeHTML(target) + "</p>" : "") +
|
||||
"<p>To appeal the ban, PM the staff member that banned you" + (room.auth ? " or a room owner. </p><p><button name=\"send\" value=\"/roomauth " + room.id + "\">List Room Staff</button></p>" : ".</p>")
|
||||
|
||||
Reference in New Issue
Block a user