SampleMoneyModule: remove last '/' on currency-base-uri

master
UbitUmarov 2020-05-08 17:30:46 +01:00
parent bcb9ab29d7
commit ea11f1aeb8
1 changed files with 2 additions and 1 deletions

View File

@ -143,9 +143,10 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
if (m_scenel.Count == 0)
{
m_economyURL = scene.RegionInfo.ServerURI;
if(!string.IsNullOrWhiteSpace(m_economyURL) && m_economyURL[m_economyURL.Length - 1] == '/')
m_economyURL = m_economyURL.Substring(0, m_economyURL.Length - 1);
m_rpcHandlers = new Dictionary<string, XmlRpcMethod>();
m_rpcHandlers.Add("getCurrencyQuote", quote_func);
m_rpcHandlers.Add("buyCurrency", buy_func);
m_rpcHandlers.Add("preflightBuyLandPrep", preflightBuyLandPrep_func);