aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-09-29 02:57:28 +0100
committerJustin Clark-Casey (justincc)2012-09-29 02:57:28 +0100
commit4e9509dafa016afd11674008c2e315f36ba1d698 (patch)
tree0ffc6791e25fb6dfa8589f58887a248203e7bf13 /OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
parentFix bug where debug http level 6 could not be specified. Also converts newli... (diff)
downloadopensim-SC_OLD-4e9509dafa016afd11674008c2e315f36ba1d698.zip
opensim-SC_OLD-4e9509dafa016afd11674008c2e315f36ba1d698.tar.gz
opensim-SC_OLD-4e9509dafa016afd11674008c2e315f36ba1d698.tar.bz2
opensim-SC_OLD-4e9509dafa016afd11674008c2e315f36ba1d698.tar.xz
Get rid of some unnecessary casts in RemoteAdminPlugin.
This was stopping http://code.google.com/p/opensimtools/wiki/RemoteAdminPHPClass from working with some methods (e.g. create_user). However, this casting has been around for at least 2 years so I'm puzzled that it worked in the first place, though it probably is extremely old sample code.
Diffstat (limited to 'OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index 5d80ba9..15fbddd 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -572,7 +572,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
572 572
573 region.ExternalHostName = (string) requestData["external_address"]; 573 region.ExternalHostName = (string) requestData["external_address"];
574 574
575 bool persist = Convert.ToBoolean((string) requestData["persist"]); 575 bool persist = Convert.ToBoolean(requestData["persist"]);
576 if (persist) 576 if (persist)
577 { 577 {
578 // default place for region configuration files is in the 578 // default place for region configuration files is in the
@@ -981,8 +981,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController
981 string lastName = (string) requestData["user_lastname"]; 981 string lastName = (string) requestData["user_lastname"];
982 string password = (string) requestData["user_password"]; 982 string password = (string) requestData["user_password"];
983 983
984 uint regionXLocation = Convert.ToUInt32((Int32) requestData["start_region_x"]); 984 uint regionXLocation = Convert.ToUInt32(requestData["start_region_x"]);
985 uint regionYLocation = Convert.ToUInt32((Int32) requestData["start_region_y"]); 985 uint regionYLocation = Convert.ToUInt32(requestData["start_region_y"]);
986 986
987 string email = ""; // empty string for email 987 string email = ""; // empty string for email
988 if (requestData.Contains("user_email")) 988 if (requestData.Contains("user_email"))
@@ -1179,9 +1179,9 @@ namespace OpenSim.ApplicationPlugins.RemoteController
1179 1179
1180 if (requestData.ContainsKey("user_password")) password = (string) requestData["user_password"]; 1180 if (requestData.ContainsKey("user_password")) password = (string) requestData["user_password"];
1181 if (requestData.ContainsKey("start_region_x")) 1181 if (requestData.ContainsKey("start_region_x"))
1182 regionXLocation = Convert.ToUInt32((Int32) requestData["start_region_x"]); 1182 regionXLocation = Convert.ToUInt32(requestData["start_region_x"]);
1183 if (requestData.ContainsKey("start_region_y")) 1183 if (requestData.ContainsKey("start_region_y"))
1184 regionYLocation = Convert.ToUInt32((Int32) requestData["start_region_y"]); 1184 regionYLocation = Convert.ToUInt32(requestData["start_region_y"]);
1185 1185
1186 // if (requestData.ContainsKey("start_lookat_x")) 1186 // if (requestData.ContainsKey("start_lookat_x"))
1187 // ulaX = Convert.ToUInt32((Int32) requestData["start_lookat_x"]); 1187 // ulaX = Convert.ToUInt32((Int32) requestData["start_lookat_x"]);