diff options
author | Justin Clarke Casey | 2009-01-06 14:20:54 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-01-06 14:20:54 +0000 |
commit | 2a4c4ceebb6bf9d3349a2f4fbefd84e4748a78a0 (patch) | |
tree | f3fdf4853dbae10cf6cf61824e177e8cb963f097 /OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs | |
parent | * Mjnor: Clarified comment to ensure that people are aware of how to end the ... (diff) | |
download | opensim-SC_OLD-2a4c4ceebb6bf9d3349a2f4fbefd84e4748a78a0.zip opensim-SC_OLD-2a4c4ceebb6bf9d3349a2f4fbefd84e4748a78a0.tar.gz opensim-SC_OLD-2a4c4ceebb6bf9d3349a2f4fbefd84e4748a78a0.tar.bz2 opensim-SC_OLD-2a4c4ceebb6bf9d3349a2f4fbefd84e4748a78a0.tar.xz |
* refactor: drop AddXmlRpcHandler() from scene in favour of call via CommsManager
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs index f87e2dd..3071026 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs | |||
@@ -32,15 +32,16 @@ using System.Net; | |||
32 | using System.Net.Sockets; | 32 | using System.Net.Sockets; |
33 | using System.Reflection; | 33 | using System.Reflection; |
34 | using System.Xml; | 34 | using System.Xml; |
35 | using OpenMetaverse; | ||
36 | using log4net; | 35 | using log4net; |
37 | using Nini.Config; | 36 | using Nini.Config; |
38 | using Nwc.XmlRpc; | 37 | using Nwc.XmlRpc; |
38 | using OpenMetaverse; | ||
39 | using OpenSim.Framework; | 39 | using OpenSim.Framework; |
40 | using OpenSim.Framework.Communications.Cache; | ||
41 | using OpenSim.Framework.Servers; | ||
40 | using OpenSim.Region.Environment.Interfaces; | 42 | using OpenSim.Region.Environment.Interfaces; |
41 | using OpenSim.Region.Interfaces; | 43 | using OpenSim.Region.Interfaces; |
42 | using OpenSim.Region.Environment.Scenes; | 44 | using OpenSim.Region.Environment.Scenes; |
43 | using OpenSim.Framework.Communications.Cache; | ||
44 | 45 | ||
45 | namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney | 46 | namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney |
46 | { | 47 | { |
@@ -133,6 +134,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney | |||
133 | if (m_enabled) | 134 | if (m_enabled) |
134 | { | 135 | { |
135 | scene.RegisterModuleInterface<IMoneyModule>(this); | 136 | scene.RegisterModuleInterface<IMoneyModule>(this); |
137 | BaseHttpServer httpServer = scene.CommsManager.HttpServer; | ||
136 | 138 | ||
137 | lock (m_scenel) | 139 | lock (m_scenel) |
138 | { | 140 | { |
@@ -149,16 +151,16 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney | |||
149 | { | 151 | { |
150 | // Centralized grid structure using OpenSimWi Redux revision 9+ | 152 | // Centralized grid structure using OpenSimWi Redux revision 9+ |
151 | // https://opensimwiredux.svn.sourceforge.net/svnroot/opensimwiredux | 153 | // https://opensimwiredux.svn.sourceforge.net/svnroot/opensimwiredux |
152 | scene.AddXmlRPCHandler("balanceUpdateRequest", GridMoneyUpdate); | 154 | httpServer.AddXmlRPCHandler("balanceUpdateRequest", GridMoneyUpdate); |
153 | scene.AddXmlRPCHandler("userAlert", UserAlert); | 155 | httpServer.AddXmlRPCHandler("userAlert", UserAlert); |
154 | } | 156 | } |
155 | else | 157 | else |
156 | { | 158 | { |
157 | // Local Server.. enables functionality only. | 159 | // Local Server.. enables functionality only. |
158 | scene.AddXmlRPCHandler("getCurrencyQuote", quote_func); | 160 | httpServer.AddXmlRPCHandler("getCurrencyQuote", quote_func); |
159 | scene.AddXmlRPCHandler("buyCurrency", buy_func); | 161 | httpServer.AddXmlRPCHandler("buyCurrency", buy_func); |
160 | scene.AddXmlRPCHandler("preflightBuyLandPrep", preflightBuyLandPrep_func); | 162 | httpServer.AddXmlRPCHandler("preflightBuyLandPrep", preflightBuyLandPrep_func); |
161 | scene.AddXmlRPCHandler("buyLandPrep", landBuy_func); | 163 | httpServer.AddXmlRPCHandler("buyLandPrep", landBuy_func); |
162 | } | 164 | } |
163 | } | 165 | } |
164 | 166 | ||