diff --git a/OpenMetaverse/Login.cs b/OpenMetaverse/Login.cs index 97c9f9c1..0550561d 100644 --- a/OpenMetaverse/Login.cs +++ b/OpenMetaverse/Login.cs @@ -261,6 +261,7 @@ namespace OpenMetaverse public string InventoryHost; public int MaxAgentGroups; public string OpenIDUrl; + public string XMPPHost; /// /// Parse LLSD Login Reply Data @@ -492,6 +493,11 @@ namespace OpenMetaverse OpenIDUrl = ParseString("openid_url", reply); } + if (reply.ContainsKey("xmpp_host")) + { + XMPPHost = ParseString("xmpp_host", reply); + } + } #region Parsing Helpers @@ -824,7 +830,8 @@ namespace OpenMetaverse public string LoginMessage { get { return InternalLoginMessage; } } /// Maximum number of groups an agent can belong to, -1 for unlimited public int MaxAgentGroups = -1; - + /// XMPP server to connect to for Group chat and IM services + public string XMPPHost; #endregion #region Private Members @@ -1260,6 +1267,7 @@ namespace OpenMetaverse // Misc: MaxAgentGroups = reply.MaxAgentGroups; + XMPPHost = reply.XMPPHost; //uint timestamp = (uint)reply.seconds_since_epoch; //DateTime time = Helpers.UnixTimeToDateTime(timestamp); // TODO: Do something with this?