diff --git a/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs b/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs index 28f1869131..3d786dda04 100644 --- a/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs +++ b/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs @@ -903,7 +903,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands List sceneObjects = new List(); Action searchAction; - int refusedAttachments = 0; + if (useRegex) { Regex nameRegex = new Regex(name);