From 6b87cb70835194255fce3d1f19c731e2afe397b5 Mon Sep 17 00:00:00 2001 From: Ethan Date: Mon, 12 Aug 2013 05:52:51 -0500 Subject: [PATCH] Return correct command when using /demote Previously if you used /demote and didn't have permission to it would return /promote - Access denied. --- commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.js b/commands.js index 8e48e96060..d2142b0236 100644 --- a/commands.js +++ b/commands.js @@ -613,7 +613,7 @@ var commands = exports.commands = { return this.sendReply('Group \'' + nextGroup + '\' does not exist.'); } if (!user.checkPromotePermission(currentGroup, nextGroup)) { - return this.sendReply('/promote - Access denied.'); + return this.sendReply('/' + cmd + ' - Access denied.'); } var isDemotion = (config.groups[nextGroup].rank < config.groups[currentGroup].rank);