mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-10 18:25:38 -05:00
Merge pull request #1320 from jd4564/master
Fix a crash in /forcepromote
This commit is contained in:
@@ -1003,6 +1003,7 @@ var commands = exports.commands = {
|
||||
target = this.splitTarget(target, true);
|
||||
var name = this.targetUsername;
|
||||
var nextGroup = target || Users.getNextGroupSymbol(' ', false);
|
||||
if (!Config.groups[nextGroup]) return this.sendReply("Group '" + nextGroup + "' does not exist.");
|
||||
|
||||
if (!Users.setOfflineGroup(name, nextGroup, true)) {
|
||||
return this.sendReply("/forcepromote - Don't forcepromote unless you have to.");
|
||||
|
||||
Reference in New Issue
Block a user