Instructions Jenkins Doxygen

[Fixed] /setname admin command no longer allows setting a name to an 94/2194/1
authorIvojedi <ivojedi@swgemu.com>
Wed, 30 Jul 2014 19:22:35 +0000 (12:22 -0700)
committerIvojedi <ivojedi@swgemu.com>
Wed, 30 Jul 2014 19:22:35 +0000 (12:22 -0700)
empty string

Change-Id: If3af392f1a56831b3db98bf3643ec3f0557d03d0

MMOCoreORB/src/server/zone/objects/creature/commands/SetNameCommand.h

index 89ef985..d16c324 100755 (executable)
@@ -73,6 +73,12 @@ public:
                Locker clocker(targetObj, creature);
 
                String newName = arguments.toString();
+
+               if (newName.isEmpty()) {
+                       creature->sendSystemMessage("You must specify a new name.");
+                       return GENERALERROR;
+               }
+
                String oldName = targetObj->getCustomObjectName().toString();
 
                if (targetObj->isPlayerCreature()) {