mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Merge pull request #294 from Ethan/promote
Return correct command when using /demote
This commit is contained in:
commit
b3c9c9a768
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user