예제 #1
0
        public override void Save()
        {
            string toFile = "";

            lock (words)
            {
                foreach (KeyValuePair <string, List <KeyValuePair <int, ushort> > > word in words)
                {
                    toFile += word.Key;
                    foreach (KeyValuePair <int, ushort> pair in word.Value)
                    {
                        toFile += " " + pair.Key.ToString() + " " + pair.Value.ToString();
                    }
                    toFile += "\n";
                }
            }
            EncFile.WriteAllText(server.Data + Path.DirectorySeparatorChar + "words.dat", toFile);

            toFile = "";
            lock (lines)
            {
                foreach (KeyValuePair <int, KeyValuePair <string, uint> > line in lines)
                {
                    toFile += line.Value.Value.ToString() + ":" + line.Value.Key + "\n";
                }
            }
            EncFile.WriteAllText(server.Data + Path.DirectorySeparatorChar + "lines.dat", toFile);
        }
예제 #2
0
        public override void Save()
        {
            string fileout = "";

            foreach (KeyValuePair <string, List <uint> > times in channelOverall)
            {
                fileout += times.Key;
                foreach (ulong time in times.Value)
                {
                    fileout += " " + time.ToString();
                }
                fileout += "\n";
            }
            foreach (KeyValuePair <string, Dictionary <string, List <uint> > > timess in chanNickOverall)
            {
                foreach (KeyValuePair <string, List <uint> > times in timess.Value)
                {
                    fileout += timess.Key + " " + times.Key;
                    foreach (uint time in times.Value)
                    {
                        fileout += " " + time.ToString();
                    }
                    fileout += "\n";
                }
            }
            Directory.CreateDirectory(server.Data);
            EncFile.WriteAllText(server.Data + Path.DirectorySeparatorChar + "ActivityMonitor.db", fileout);
        }
예제 #3
0
        public override void Save()
        {
            string toFile = "";

            foreach (KeyValuePair <string, string> login in logins)
            {
                toFile += login.Key + " " + login.Value + "\n";
            }
            EncFile.WriteAllText(server.Data + Path.DirectorySeparatorChar + "nickserv.passwd", toFile);
        }
예제 #4
0
        public override void Save()
        {
            string output = "";

            foreach (KeyValuePair <string, string> user in registrar)
            {
                output += user.Key + ":" + user.Value + "\n";
            }
            Directory.CreateDirectory(server.Data);
            EncFile.WriteAllText(server.Data + Path.DirectorySeparatorChar + "lastfm.db", output);
        }
예제 #5
0
        public override void Save()
        {
            string toFile = "";

            for (int x = 0; x < newSuggestions.Count; x++)
            {
                toFile += newSuggestions[x].ToString() + "\n";
            }
            EncFile.WriteAllText(server.Data + Path.DirectorySeparatorChar + "suggestions.new", toFile);
            toFile = "";
            for (int x = 0; x < oldSuggestions.Count; x++)
            {
                toFile += oldSuggestions[x].ToString() + "\n";
            }
            EncFile.WriteAllText(server.Data + Path.DirectorySeparatorChar + "suggestions.old", toFile);
        }
예제 #6
0
        public override void Save()
        {
            Directory.CreateDirectory(server.Data);
            string toFile = "";

            foreach (KeyValuePair <DateTime, KeyValuePair <string, string> > y in youtubes)
            {
                toFile += y.Key.ToBinary().ToString() + " " + y.Value.Key + " " + y.Value.Value + "\n";
            }
            EncFile.WriteAllText(server.Data + Path.DirectorySeparatorChar + "youtubes", toFile);
            toFile = "";
            foreach (KeyValuePair <DateTime, KeyValuePair <string, string> > y in links)
            {
                toFile += y.Key.ToBinary().ToString() + " " + y.Value.Key + " " + y.Value.Value + "\n";
            }
            EncFile.WriteAllText(server.Data + Path.DirectorySeparatorChar + "links", toFile);
        }
예제 #7
0
        public override void Save()
        {
            Directory.CreateDirectory(server.Data);
            string quotefile = "";

            for (int x = 0; x < quotes.Count; x++)
            {
                quotefile += quotes[x].ToString() + "\n";
            }
            EncFile.WriteAllText(server.Data + Path.DirectorySeparatorChar + "quotes", quotefile);
            string datafile = "";

            foreach (KeyValuePair <string, MSG> last in database)
            {
                datafile += last.Value.ToString() + "\n";
            }
            EncFile.WriteAllText(server.Data + Path.DirectorySeparatorChar + "lastsaid", datafile);
        }
예제 #8
0
        public override void Save()
        {
            string o = "";

            foreach (string s in bodyParts)
            {
                o += "body:" + s + "\n";
            }
            foreach (string s in animalCocks)
            {
                o += "animal:" + s + "\n";
            }
            foreach (string s in wipeMunchers)
            {
                o += "wipe:" + s + "\n";
            }
            EncFile.WriteAllText(server.Data + Path.DirectorySeparatorChar + "insult.db", o);
        }