diff options
author | BlueWall | 2013-06-13 09:18:27 -0400 |
---|---|---|
committer | BlueWall | 2013-06-13 09:18:27 -0400 |
commit | b2c8d5eec7cc5c6b4685d22921a6e684ce7714b1 (patch) | |
tree | a187ce4022030ff0efe82b622e4dca1e535fd49b /OpenSim/Services/LLLoginService/LLLoginResponse.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-b2c8d5eec7cc5c6b4685d22921a6e684ce7714b1.zip opensim-SC_OLD-b2c8d5eec7cc5c6b4685d22921a6e684ce7714b1.tar.gz opensim-SC_OLD-b2c8d5eec7cc5c6b4685d22921a6e684ce7714b1.tar.bz2 opensim-SC_OLD-b2c8d5eec7cc5c6b4685d22921a6e684ce7714b1.tar.xz |
Add Option: ClassifiedFee
Add option to set minimum fee for publishing classifieds. Many viewers have a
hard coded minimum of 50, which makes publishing classifieds fail where grids
have no economy. This allows the grid to set the minimum fee to a suitable
value for their operation.
The option is located in the [LoginService] section and defaults to 0. The
value is sent as "classified_fee" in the login response.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index 400f303..6ab5258 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs | |||
@@ -190,6 +190,7 @@ namespace OpenSim.Services.LLLoginService | |||
190 | private BuddyList m_buddyList = null; | 190 | private BuddyList m_buddyList = null; |
191 | 191 | ||
192 | private string currency; | 192 | private string currency; |
193 | private string classifiedFee; | ||
193 | 194 | ||
194 | static LLLoginResponse() | 195 | static LLLoginResponse() |
195 | { | 196 | { |
@@ -227,7 +228,7 @@ namespace OpenSim.Services.LLLoginService | |||
227 | GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, | 228 | GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, |
228 | string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, | 229 | string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, |
229 | GridRegion home, IPEndPoint clientIP, string mapTileURL, string profileURL, string openIDURL, string searchURL, string currency, | 230 | GridRegion home, IPEndPoint clientIP, string mapTileURL, string profileURL, string openIDURL, string searchURL, string currency, |
230 | string DSTZone, string destinationsURL, string avatarsURL) | 231 | string DSTZone, string destinationsURL, string avatarsURL, string classifiedFee) |
231 | : this() | 232 | : this() |
232 | { | 233 | { |
233 | FillOutInventoryData(invSkel, libService); | 234 | FillOutInventoryData(invSkel, libService); |
@@ -251,6 +252,8 @@ namespace OpenSim.Services.LLLoginService | |||
251 | 252 | ||
252 | SearchURL = searchURL; | 253 | SearchURL = searchURL; |
253 | Currency = currency; | 254 | Currency = currency; |
255 | ClassifiedFee = classifiedFee; | ||
256 | |||
254 | 257 | ||
255 | FillOutHomeData(pinfo, home); | 258 | FillOutHomeData(pinfo, home); |
256 | LookAt = String.Format("[r{0},r{1},r{2}]", lookAt.X, lookAt.Y, lookAt.Z); | 259 | LookAt = String.Format("[r{0},r{1},r{2}]", lookAt.X, lookAt.Y, lookAt.Z); |
@@ -463,6 +466,7 @@ namespace OpenSim.Services.LLLoginService | |||
463 | searchURL = String.Empty; | 466 | searchURL = String.Empty; |
464 | 467 | ||
465 | currency = String.Empty; | 468 | currency = String.Empty; |
469 | ClassifiedFee = "0"; | ||
466 | } | 470 | } |
467 | 471 | ||
468 | 472 | ||
@@ -555,6 +559,9 @@ namespace OpenSim.Services.LLLoginService | |||
555 | // responseData["real_currency"] = currency; | 559 | // responseData["real_currency"] = currency; |
556 | responseData["currency"] = currency; | 560 | responseData["currency"] = currency; |
557 | } | 561 | } |
562 | |||
563 | if (ClassifiedFee != String.Empty) | ||
564 | responseData["classified_fee"] = ClassifiedFee; | ||
558 | 565 | ||
559 | responseData["login"] = "true"; | 566 | responseData["login"] = "true"; |
560 | 567 | ||
@@ -659,6 +666,9 @@ namespace OpenSim.Services.LLLoginService | |||
659 | if (searchURL != String.Empty) | 666 | if (searchURL != String.Empty) |
660 | map["search"] = OSD.FromString(searchURL); | 667 | map["search"] = OSD.FromString(searchURL); |
661 | 668 | ||
669 | if (ClassifiedFee != String.Empty) | ||
670 | map["classified_fee"] = OSD.FromString(ClassifiedFee); | ||
671 | |||
662 | if (m_buddyList != null) | 672 | if (m_buddyList != null) |
663 | { | 673 | { |
664 | map["buddy-list"] = ArrayListToOSDArray(m_buddyList.ToArray()); | 674 | map["buddy-list"] = ArrayListToOSDArray(m_buddyList.ToArray()); |
@@ -1064,6 +1074,12 @@ namespace OpenSim.Services.LLLoginService | |||
1064 | set { currency = value; } | 1074 | set { currency = value; } |
1065 | } | 1075 | } |
1066 | 1076 | ||
1077 | public string ClassifiedFee | ||
1078 | { | ||
1079 | get { return classifiedFee; } | ||
1080 | set { classifiedFee = value; } | ||
1081 | } | ||
1082 | |||
1067 | public string DestinationsURL | 1083 | public string DestinationsURL |
1068 | { | 1084 | { |
1069 | get; set; | 1085 | get; set; |