/whois: Privatize more punishments to global staff

Roomstaff have no use for these. (Wob said this was OK).
This commit is contained in:
Mia 2021-10-04 08:21:58 -05:00
parent 5b0ed34c60
commit a0227dfaeb

View File

@ -205,27 +205,28 @@ export const commands: Chat.ChatCommands = {
}
}
const battlebanned = Punishments.isBattleBanned(targetUser);
if (battlebanned) {
buf += `<br />BATTLEBANNED: ${battlebanned.id}`;
buf += ` ${Punishments.checkPunishmentExpiration(battlebanned)}`;
if (battlebanned.reason) buf += Utils.html` (reason: ${battlebanned.reason})`;
}
if (user.can('lock')) {
const battlebanned = Punishments.isBattleBanned(targetUser);
if (battlebanned) {
buf += `<br />BATTLEBANNED: ${battlebanned.id}`;
buf += ` ${Punishments.checkPunishmentExpiration(battlebanned)}`;
if (battlebanned.reason) buf += Utils.html` (reason: ${battlebanned.reason})`;
}
const groupchatbanned = Punishments.isGroupchatBanned(targetUser);
if (groupchatbanned) {
buf += `<br />Banned from using groupchats${groupchatbanned.id !== targetUser.id ? `: ${groupchatbanned.id}` : ``}`;
buf += ` ${Punishments.checkPunishmentExpiration(groupchatbanned)}`;
if (groupchatbanned.reason) buf += Utils.html` (reason: ${groupchatbanned.reason})`;
}
const groupchatbanned = Punishments.isGroupchatBanned(targetUser);
if (groupchatbanned) {
buf += `<br />Banned from using groupchats${groupchatbanned.id !== targetUser.id ? `: ${groupchatbanned.id}` : ``}`;
buf += ` ${Punishments.checkPunishmentExpiration(groupchatbanned)}`;
if (groupchatbanned.reason) buf += Utils.html` (reason: ${groupchatbanned.reason})`;
}
const ticketbanned = Punishments.isTicketBanned(targetUser.id);
if (ticketbanned) {
buf += `<br />Banned from creating help tickets${ticketbanned.id !== targetUser.id ? `: ${ticketbanned.id}` : ``}`;
buf += ` ${Punishments.checkPunishmentExpiration(ticketbanned)}`;
if (ticketbanned.reason) buf += Utils.html` (reason: ${ticketbanned.reason})`;
const ticketbanned = Punishments.isTicketBanned(targetUser.id);
if (ticketbanned) {
buf += `<br />Banned from creating help tickets${ticketbanned.id !== targetUser.id ? `: ${ticketbanned.id}` : ``}`;
buf += ` ${Punishments.checkPunishmentExpiration(ticketbanned)}`;
if (ticketbanned.reason) buf += Utils.html` (reason: ${ticketbanned.reason})`;
}
}
if (targetUser.semilocked) {
buf += `<br />Semilocked: ${user.can('lock') ? targetUser.semilocked : "(reason hidden)"}`;
}