From 337da2a7a3e330d465aef421e51729bb3df03244 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Sat, 1 Nov 2008 07:21:40 +0000 Subject: Update svn properties, minor formatting cleanup. --- .../Modules/Avatar/Chat/XIRCBridgeModule.cs | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/Avatar/Chat') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/XIRCBridgeModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/XIRCBridgeModule.cs index d7abc19..4594e6c 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Chat/XIRCBridgeModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/XIRCBridgeModule.cs @@ -99,10 +99,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat enabled = true; - if(config.Configs["RemoteAdmin"] != null) + if (config.Configs["RemoteAdmin"] != null) { - password = config.Configs["RemoteAdmin"].GetString("access_password", password); - scene.CommsManager.HttpServer.AddXmlRPCHandler("xirc_admin", XmlRpcAdminMethod, false); + password = config.Configs["RemoteAdmin"].GetString("access_password", password); + scene.CommsManager.HttpServer.AddXmlRPCHandler("xirc_admin", XmlRpcAdminMethod, false); } } @@ -224,20 +224,20 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat bool found = false; string region = String.Empty; - if(password != String.Empty) + if (password != String.Empty) { - if(!requestData.ContainsKey("password")) - throw new Exception("Invalid request"); - if(requestData["password"] != password) - throw new Exception("Invalid request"); + if (!requestData.ContainsKey("password")) + throw new Exception("Invalid request"); + if (requestData["password"] != password) + throw new Exception("Invalid request"); } - if(!requestData.ContainsKey("region")) - throw new Exception("No region name specified"); + if (!requestData.ContainsKey("region")) + throw new Exception("No region name specified"); - foreach(RegionState rs in m_regions) + foreach (RegionState rs in m_regions) { - if(rs.Region == region) + if (rs.Region == region) { responseData["server"] = rs.cs.Server; responseData["port"] = rs.cs.Port; @@ -251,7 +251,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat } } - if(!found) throw new Exception(String.Format("Region <{0}> not found", region)); + if (!found) throw new Exception(String.Format("Region <{0}> not found", region)); responseData["success"] = true; -- cgit v1.1