diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Avatar/Currency')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs index fc1decf..c8050da 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs | |||
@@ -819,9 +819,9 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney | |||
819 | Hashtable retparam = new Hashtable(); | 819 | Hashtable retparam = new Hashtable(); |
820 | Hashtable requestData = (Hashtable) request.Params[0]; | 820 | Hashtable requestData = (Hashtable) request.Params[0]; |
821 | 821 | ||
822 | UUID agentId = UUID.Zero; | 822 | UUID agentId; |
823 | UUID soundId = UUID.Zero; | 823 | UUID soundId; |
824 | UUID regionId = UUID.Zero; | 824 | UUID regionId; |
825 | 825 | ||
826 | UUID.TryParse((string) requestData["agentId"], out agentId); | 826 | UUID.TryParse((string) requestData["agentId"], out agentId); |
827 | UUID.TryParse((string) requestData["soundId"], out soundId); | 827 | UUID.TryParse((string) requestData["soundId"], out soundId); |
@@ -832,7 +832,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney | |||
832 | Scene userScene = GetSceneByUUID(regionId); | 832 | Scene userScene = GetSceneByUUID(regionId); |
833 | if (userScene != null) | 833 | if (userScene != null) |
834 | { | 834 | { |
835 | if (userScene.RegionInfo.regionSecret.ToString() == secret) | 835 | if (userScene.RegionInfo.regionSecret == secret) |
836 | { | 836 | { |
837 | 837 | ||
838 | IClientAPI client = LocateClientObject(agentId); | 838 | IClientAPI client = LocateClientObject(agentId); |
@@ -842,7 +842,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney | |||
842 | if (soundId != UUID.Zero) | 842 | if (soundId != UUID.Zero) |
843 | client.SendPlayAttachedSound(soundId, UUID.Zero, UUID.Zero, 1.0f, 0); | 843 | client.SendPlayAttachedSound(soundId, UUID.Zero, UUID.Zero, 1.0f, 0); |
844 | 844 | ||
845 | client.SendBlueBoxMessage(UUID.Zero, UUID.Zero, "", text); | 845 | client.SendBlueBoxMessage(UUID.Zero, "", text); |
846 | 846 | ||
847 | retparam.Add("success", true); | 847 | retparam.Add("success", true); |
848 | } | 848 | } |