mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
/whois: Privatize more punishments to global staff
Roomstaff have no use for these. (Wob said this was OK).
This commit is contained in:
parent
5b0ed34c60
commit
a0227dfaeb
|
|
@ -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)"}`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user