aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 1afa08d..f2a8474 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5722,6 +5722,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5722 5722
5723 public void llDialog(string avatar, string message, LSL_List buttons, int chat_channel) 5723 public void llDialog(string avatar, string message, LSL_List buttons, int chat_channel)
5724 { 5724 {
5725 IDialogModule dm = World.RequestModuleInterface<IDialogModule>();
5726
5727 if (dm == null)
5728 return;
5729
5725 m_host.AddScriptLPS(1); 5730 m_host.AddScriptLPS(1);
5726 UUID av = new UUID(); 5731 UUID av = new UUID();
5727 if (!UUID.TryParse(avatar,out av)) 5732 if (!UUID.TryParse(avatar,out av))
@@ -5749,7 +5754,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5749 } 5754 }
5750 buts[i] = buttons.Data[i].ToString(); 5755 buts[i] = buttons.Data[i].ToString();
5751 } 5756 }
5752 World.SendDialogToUser(av, m_host.Name, m_host.UUID, m_host.OwnerID, message, new UUID("00000000-0000-2222-3333-100000001000"), chat_channel, buts); 5757
5758 dm.SendDialogToUser(
5759 av, m_host.Name, m_host.UUID, m_host.OwnerID,
5760 message, new UUID("00000000-0000-2222-3333-100000001000"), chat_channel, buts);
5761
5753 // ScriptSleep(1000); 5762 // ScriptSleep(1000);
5754 } 5763 }
5755 5764