Esempio n. 1
0
        /// <summary>
        /// This is a private handler for channel joining, never call it directly, use Join() for that
        /// </summary>
        private void JoinAll()
        {
            if (irc.ChannelsJoined == false)
            {
                if (config.DebugChan != null)
                {
                    irc.SendData("JOIN " + config.DebugChan);
                }
                foreach (config.channel channel in ChannelList)
                {
                    if (channel.Name != "" && channel.Name != config.DebugChan)
                    {
                        core.DebugLog("Joining " + channel.Name + " on " + Nick);
                        irc.Join(channel);
                        Thread.Sleep(2000);
                    }
                }
                irc.ChannelsJoined = true;
            }

            irc.ChannelThread = new Thread(irc.ChannelList);
            irc.ChannelThread.Start();
        }