aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-01-08 19:14:52 +0000
committerJustin Clarke Casey2009-01-08 19:14:52 +0000
commite7bb27b5bd9ae459096f1c2282a558ee872bc0c5 (patch)
tree03604341d11fee0f8085f38d7c39795a17e2b245 /OpenSim/Region/ScriptEngine/Shared/Api
parent* refactor: move estate dialog to DialogModule (diff)
downloadopensim-SC_OLD-e7bb27b5bd9ae459096f1c2282a558ee872bc0c5.zip
opensim-SC_OLD-e7bb27b5bd9ae459096f1c2282a558ee872bc0c5.tar.gz
opensim-SC_OLD-e7bb27b5bd9ae459096f1c2282a558ee872bc0c5.tar.bz2
opensim-SC_OLD-e7bb27b5bd9ae459096f1c2282a558ee872bc0c5.tar.xz
* refactor: move code to send a dialog to a user from scene to DialogModule
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-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