Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 3
0
        public IrcalBot(IRCCore ircCore1)
        {
            status = false;

            botCore = ircCore1;
            dc      = DataClass.Instance;
        }
Exemplo n.º 4
0
 public IrcalBot(IRCCore ircCore1)
 {
     status = false;
     
     botCore = ircCore1;
     dc = DataClass.Instance;
    
 }
Exemplo n.º 5
0
 public frmRaw(IRCCore irccore)
 {
     InitializeComponent();
     icore = irccore;
 }
Exemplo n.º 6
0
 public frmRaw(IRCCore irccore)
 {
     InitializeComponent();
     icore = irccore;
 }