コード例 #1
0
 private void Transfer(Message text)
 {
     if (text.command)
     {
         Parent.SendData(text.message);
         return;
     }
     Parent.Message(text.message, text.channel);
 }
コード例 #2
0
ファイル: Instance.cs プロジェクト: MatmaRex/wikimedia-bot
        /// <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();
        }