Show the command that's actually being used when failing a permission check in /whois

This commit is contained in:
Bär Halberkamp 2016-11-15 16:00:51 +01:00
parent d81cc06504
commit ba7470f3eb

View File

@ -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> `;