mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-23 00:06:15 -05:00
Show the command that's actually being used when failing a permission check in /whois
This commit is contained in:
parent
d81cc06504
commit
ba7470f3eb
|
|
@ -32,7 +32,7 @@ exports.commands = {
|
|||
return this.errorReply("User " + this.targetUsername + " not found.");
|
||||
}
|
||||
if (showAll && !user.trusted && targetUser !== user) {
|
||||
return this.errorReply("/alts - Access denied.");
|
||||
return this.errorReply(`/${cmd} - Access denied.`);
|
||||
}
|
||||
|
||||
let buf = Chat.html`<strong class="username"><small style="display:none">${targetUser.group}</small>${targetUser.name}</strong> `;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user