Пример #1
0
        public static void JoinFavorites(IRCCore icore, Dictionary <string, ChanMessageList> clist)

        {
            DataClass oData;
            DataTable dt = new DataTable();

            oData = DataClass.Instance;
            //SavedSet.ServerListDataTable dtSList;
            Dictionary <string, ChanFav> favlist = oData.GetFavoriteList(icore.ServerName);


            foreach (KeyValuePair <string, ChanFav> cf in  favlist)
            {
                if (!clist.ContainsKey(cf.Value.channel))
                {
                    icore.SendRaw("JOIN #" + cf.Value.channel);
                    ChanMessageList cml = new ChanMessageList();
                    cml.Channel = cf.Value.channel;
                    clist.Add(cf.Value.channel, cml);
                }
            }

            foreach (KeyValuePair <string, ChanMessageList> cvpair in clist)
            {
                if (!favlist.ContainsKey(cvpair.Value.Channel))
                {
                    icore.SendRaw("PART #" + cvpair.Value.Channel);
                }
            }
        }
Пример #2
0
        public static void JoinFavorites(IRCCore icore, Dictionary<string,ChanMessageList> clist)
        
        {
            DataClass oData;
            DataTable dt = new DataTable();
            oData = DataClass.Instance;
            //SavedSet.ServerListDataTable dtSList;
            Dictionary<string,ChanFav> favlist = oData.GetFavoriteList(icore.ServerName);

            
            foreach (KeyValuePair<string,ChanFav> cf in  favlist)
            {
             
                if (!clist.ContainsKey(cf.Value.channel))
                {
                    icore.SendRaw("JOIN #" + cf.Value.channel);
                    ChanMessageList cml = new ChanMessageList();
                    cml.Channel = cf.Value.channel;
                    clist.Add(cf.Value.channel, cml);
                }

            }
            
            foreach (KeyValuePair<string, ChanMessageList> cvpair in clist)
            {
                if (!favlist.ContainsKey(cvpair.Value.Channel))
                {
                    icore.SendRaw("PART #" + cvpair.Value.Channel);
                }
            }
        }
Пример #3
0
        public IrcalBot(IRCCore ircCore1)
        {
            status = false;

            botCore = ircCore1;
            dc      = DataClass.Instance;
        }
Пример #4
0
 public IrcalBot(IRCCore ircCore1)
 {
     status = false;
     
     botCore = ircCore1;
     dc = DataClass.Instance;
    
 }
Пример #5
0
 public frmRaw(IRCCore irccore)
 {
     InitializeComponent();
     icore = irccore;
 }
Пример #6
0
 public frmRaw(IRCCore irccore)
 {
     InitializeComponent();
     icore = irccore;
 }