From ba7470f3eb5e511e40bda2d7d574d0be84fa13fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A4r=20Halberkamp?= Date: Tue, 15 Nov 2016 16:00:51 +0100 Subject: [PATCH] Show the command that's actually being used when failing a permission check in /whois --- chat-plugins/info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat-plugins/info.js b/chat-plugins/info.js index 88dc665d0d..108a5486e2 100644 --- a/chat-plugins/info.js +++ b/chat-plugins/info.js @@ -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`${targetUser.group}${targetUser.name} `;