diff options
author | Adam Frisby | 2008-11-08 17:20:54 +0000 |
---|---|---|
committer | Adam Frisby | 2008-11-08 17:20:54 +0000 |
commit | cf0a14bec94322656f57890d49fead85ed31730e (patch) | |
tree | 861596444093bb68567cda8583cd0e94a618c120 /OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney | |
parent | Fix broken build since r7179 (diff) | |
download | opensim-SC_OLD-cf0a14bec94322656f57890d49fead85ed31730e.zip opensim-SC_OLD-cf0a14bec94322656f57890d49fead85ed31730e.tar.gz opensim-SC_OLD-cf0a14bec94322656f57890d49fead85ed31730e.tar.bz2 opensim-SC_OLD-cf0a14bec94322656f57890d49fead85ed31730e.tar.xz |
* Added IClientIM to IClientCore interfaces
* Changed SendInstantMessage, dropped fromAgentSession and imSessionID as security precaution, see http://opensimulator.org/wiki/OpenSim_0.6_IClientAPI#Porting_Guide for details on porting.
* Removed unused usings from Framework.*
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney')
-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 | } |