diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 3a06462..0448030 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -356,6 +356,31 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
356 | engine = engineName; | 356 | engine = engineName; |
357 | script = "//" + script.Substring(script.IndexOf(':')+1); | 357 | script = "//" + script.Substring(script.IndexOf(':')+1); |
358 | } | 358 | } |
359 | else | ||
360 | { | ||
361 | if (engine == ScriptEngineName) | ||
362 | { | ||
363 | SceneObjectPart part = | ||
364 | m_Scene.GetSceneObjectPart( | ||
365 | localID); | ||
366 | |||
367 | TaskInventoryItem item = | ||
368 | part.GetInventoryItem(itemID); | ||
369 | |||
370 | ScenePresence presence = | ||
371 | m_Scene.GetScenePresence( | ||
372 | item.OwnerID); | ||
373 | |||
374 | if (presence != null) | ||
375 | { | ||
376 | presence.ControllingClient.SendAgentAlertMessage( | ||
377 | "Selected engine unavailable. "+ | ||
378 | "Running script on "+ | ||
379 | ScriptEngineName, | ||
380 | false); | ||
381 | } | ||
382 | } | ||
383 | } | ||
359 | } | 384 | } |
360 | } | 385 | } |
361 | 386 | ||