Provides data for events that concern an IrcChannel.
상속: IrcCommentEventArgs
예제 #1
0
        /// <summary>
        /// Raises the <see cref="LeftChannel"/> event.
        /// </summary>
        /// <param name="e">The <see cref="IrcChannelEventArgs"/> instance containing the event data.</param>
        protected virtual void OnLeftChannel(IrcChannelEventArgs e)
        {
            var handler = this.LeftChannel;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #2
0
        /// <summary>
        ///     Raises the <see cref="JoinedChannel" /> event.
        /// </summary>
        /// <param name="e">The <see cref="IrcChannelEventArgs" /> instance containing the event data.</param>
        protected virtual void OnJoinedChannel(IrcChannelEventArgs e)
        {
            var handler = JoinedChannel;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #3
0
        private static void IrcClient_LocalUser_JoinedChannel(object sender, IrcChannelEventArgs e)
        {
            var localUser = (IrcLocalUser)sender;

            e.Channel.UserJoined      += IrcClient_Channel_UserJoined;
            e.Channel.UserLeft        += IrcClient_Channel_UserLeft;
            e.Channel.MessageReceived += IrcClient_Channel_MessageReceived;
            e.Channel.NoticeReceived  += IrcClient_Channel_NoticeReceived;

            Console.WriteLine("You joined the channel {0}.", e.Channel.Name);
        }
예제 #4
0
        /// <summary>
        /// Raises the <see cref="JoinedChannel"/> event.
        /// </summary>
        /// <param name="e">The <see cref="IrcChannelEventArgs"/> instance containing the event data.</param>
        protected virtual void OnJoinedChannel(IrcChannelEventArgs e)
        {
            logger.Debug("OnJoinedChannel - var handler = this.JoinedChannel;");
            var handler = this.JoinedChannel;

            if (handler != null)
            {
                logger.Debug("OnJoinedChannel - in (handler != null)");
                handler(this, e);
            }
        }
예제 #5
0
        private void IrcClient_LocalUser_LeftChannel(object sender, IrcChannelEventArgs e)
        {
            var localUser = (IrcLocalUser)sender;

            e.Channel.UserJoined      -= IrcClient_Channel_UserJoined;
            e.Channel.UserLeft        -= IrcClient_Channel_UserLeft;
            e.Channel.MessageReceived -= IrcClient_Channel_MessageReceived;
            e.Channel.NoticeReceived  -= IrcClient_Channel_NoticeReceived;

            OnLocalUserLeftChannel(localUser, e);
        }
예제 #6
0
 /// <summary>
 /// </summary>
 /// <param name="localUser">
 /// </param>
 /// <param name="e">
 /// </param>
 protected abstract void OnLocalUserLeftChannel(IrcLocalUser localUser, IrcChannelEventArgs e);
예제 #7
0
파일: mainForm.cs 프로젝트: Foltik/SugoiRC
        private void ircClient_LocalUser_LeftChannel(object sender, IrcChannelEventArgs e)
        {
            var localUser = (IrcLocalUser)sender;

            e.Channel.UserJoined -= ircClient_Channel_UserJoined;
            e.Channel.UserLeft -= ircClient_Channel_UserLeft;
            e.Channel.MessageReceived -= ircClient_Channel_MessageReceived;
            e.Channel.NoticeReceived -= ircClient_Channel_NoticeReceived;

            writeLine("You left " + e.Channel.Name);
        }
예제 #8
0
 private void OnJoinedChannel(object sender, IrcChannelEventArgs e)
 {
     StartTasks();
     SubscribeToChannelEvents(e.Channel);
 }
예제 #9
0
 protected override void OnLocalUserLeftChannel(IrcLocalUser localUser, IrcChannelEventArgs e)
 {
     //
 }
예제 #10
0
        private void LocalUser_LeftChannel(object sender, IrcChannelEventArgs e)
        {
            var localUser = (IrcLocalUser)sender;

            e.Channel.MessageReceived -= Channel_MessageReceived;
            e.Channel.UsersListReceived -= Channel_UsersListReceived;
            e.Channel.UserJoined -= Channel_UserJoined;
            e.Channel.ModesChanged -= Channel_ModesChanged;
            e.Channel.NoticeReceived -= Channel_NoticeReceived;
        }
예제 #11
0
        void LocalUser_LeftChannel(object sender, IrcChannelEventArgs e)
        {
            IrcLocalUser ircLocalUser = (IrcLocalUser)sender;
            IrcClient ircClient = ircLocalUser.Client;
            INetwork connection = this.connections[ircClient];
            IrcChannel ircChannel = e.Channel;
            IChannel channel = this.channels[ircChannel];

            this.DestoryChannel(channel, connection);

            this.OnPartedChannel(channel);
        }
예제 #12
0
 private static void IrcClient_LocalUser_LeftChannel(object sender, IrcChannelEventArgs e)
 {
     e.Channel.MessageReceived -= IrcClient_Channel_MessageReceived;
 }
예제 #13
0
        void LocalUser_JoinedChannel(object sender, IrcChannelEventArgs e)
        {
            e.Channel.MessageReceived += SpeedRunsLive_MessageReceived;

            if (e.Channel == RaceChannel)
            {
                e.Channel.ModesChanged += RaiseUserListRefreshed;
                e.Channel.UserJoined += RaiseUserListRefreshed;
                e.Channel.UserKicked += RaiseUserListRefreshed;
                e.Channel.UserLeft += RaiseUserListRefreshed;
                e.Channel.UsersListReceived += RaiseUserListRefreshed;
                e.Channel.UsersListReceived += Channel_UsersListReceived;
                RaceChannel.TopicChanged += RaceChannel_TopicChanged;
                RaceChannel.UserKicked += RaceChannel_UserKicked;
            }

            if (e.Channel == LiveSplitChannel)
            {
                e.Channel.UsersListReceived += Channel_UsersListReceived;
            }

            if (ChannelJoined != null)
                ChannelJoined(this, e.Channel.Name);
        }
예제 #14
0
 void OnIRCJoinedChannel(object sender, IrcChannelEventArgs e)
 {
     e.Channel.MessageReceived += OnChannelMessage;
     e.Channel.UserJoined += OnChannelJoined;
     e.Channel.UserKicked += OnChannelKicked;
     e.Channel.UserLeft += OnChannelLeft;
     e.Channel.UsersListReceived += OnChannelUsersList;
 }
예제 #15
0
 private void client_LocalUser_LeftChannel(object sender, IrcChannelEventArgs e)
 {
     WriteDiagnosticMessage("Left Channel: {0}: {1}", e.Channel, e.Comment);
 }
예제 #16
0
파일: AzureBot.cs 프로젝트: bremnes/IrcBot
 protected override void OnLocalUserLeftChannel(IrcLocalUser localUser, IrcChannelEventArgs e)
 {
     Trace.TraceInformation("OnLocalUserLeftChannel");
 }
 protected override void OnLocalUserJoinedChannel(IrcLocalUser localUser, IrcChannelEventArgs e)
 {
     SendGreeting(localUser, e.Channel);
 }
예제 #18
0
 protected override void OnLocalUserJoinedChannel(IrcLocalUser localUser, IrcChannelEventArgs e)
 {
     ChannelsToRejoin.Add(e.Channel.Name);
 }
예제 #19
0
 /// <summary>
 ///     Raises the <see cref="JoinedChannel" /> event.
 /// </summary>
 /// <param name="e">The <see cref="IrcChannelEventArgs" /> instance containing the event data.</param>
 protected virtual void OnJoinedChannel(IrcChannelEventArgs e)
 {
     var handler = JoinedChannel;
     if (handler != null)
         handler(this, e);
 }
예제 #20
0
        void LocalUser_JoinedChannel(object sender, IrcChannelEventArgs e)
        {
            IrcChannel ircChannel = e.Channel;
            IChannel channel = this.CreateChannel(ircChannel);

            this.OnJoinedChannel(channel);
        }
예제 #21
0
 private static void IrcClient_LocalUser_JoinedChannel(object sender, IrcChannelEventArgs e)
 {
     logger.Debug("IrcClient_LocalUser_JoinedChannel - e.Channel.MessageReceived += IrcClient_Channel_MessageReceived;");
     e.Channel.MessageReceived += IrcClient_Channel_MessageReceived;
     Console.WriteLine("Bot ready in IRC channel {0}.", e.Channel.Name);
     Console.Write("> ");
 }
예제 #22
0
        private void IrcClient_LocalUser_LeftChannel(object sender, IrcChannelEventArgs e)
        {
            var localUser = (IrcLocalUser)sender;

            e.Channel.UserJoined -= IrcClient_Channel_UserJoined;
            e.Channel.UserLeft -= IrcClient_Channel_UserLeft;
            e.Channel.MessageReceived -= IrcClient_Channel_MessageReceived;
        }
예제 #23
0
 protected override void OnLocalUserLeftChannel(IrcLocalUser localUser, IrcChannelEventArgs e)
 {
     if(AutoRejoin) {
         localUser.Client.Channels.Join(e.Channel.Name);
     }
 }
예제 #24
0
 /// <summary>
 /// Raises the <see cref="JoinedChannel"/> event.
 /// </summary>
 /// <param name="e">The <see cref="IrcChannelEventArgs"/> instance containing the event data.</param>
 protected virtual void OnJoinedChannel(IrcChannelEventArgs e)
 {
     logger.Debug("OnJoinedChannel - var handler = this.JoinedChannel;");
     var handler = this.JoinedChannel;
     if (handler != null)
     {
         logger.Debug("OnJoinedChannel - in (handler != null)");
         handler(this, e);
     }
 }
예제 #25
0
 protected override void OnLocalUserJoinedChannel(IrcLocalUser localUser, IrcChannelEventArgs e)
 {
     SendGreeting(localUser, e.Channel);
 }
예제 #26
0
        protected override void OnLocalUserJoinedChannel(IrcLocalUser localUser, IrcChannelEventArgs e)
        {
            thisclient.FloodPreventer = new IrcStandardFloodPreventer(2,4000);
            thisclient.WhoReplyReceived += UserListUpdate;
            if (xmlprovider.runningVotes().Count() > 0)
            {
                VoteTimer = new System.Timers.Timer(5000);
                VoteTimer.Elapsed += OnVoteTimerEvent;
                VoteTimer.Enabled = true;
            }
            //OnClientRegistered may happen before joined channel thus...
            _streamProviderManager = new StreamProviderManager();
            _streamProviderManager.StreamStarted += OnStreamStarted;
            _streamProviderManager.StreamStopped += OnStreamStopped;
            _streamProviderManager.StreamGlobalNotification += OnStreamGlobalNotification;
            _streamProviderManager.AddStreamProvider(new TwitchProvider());
            _streamProviderManager.AddStreamProvider(new HitboxProvider());
            //localUser.Client.WhoReplyReceived += WhoReplyReceived;

            if (reconnectimer != null)
            {
                reconnectimer.Dispose();
            }

            if (!debug)
            {
                reconnectimer = new System.Timers.Timer(150000);
            }
            else
            {
                reconnectimer = new System.Timers.Timer(240000);
            }
            reconnectimer.Elapsed += OnReconnectTimer;
            reconnectimer.Enabled = true;
        }
예제 #27
0
        private void IrcClient_LocalUser_LeftChannel(object sender, IrcChannelEventArgs e)
        {
            var localUser = (IrcLocalUser) sender;

              e.Channel.UserJoined -= IrcClient_Channel_UserJoined;
              e.Channel.UserLeft -= IrcClient_Channel_UserLeft;
              e.Channel.MessageReceived -= IrcClient_Channel_MessageReceived;
              e.Channel.NoticeReceived -= IrcClient_Channel_NoticeReceived;

              Console.WriteLine("You left the channel {0}.", e.Channel.Name);
        }
예제 #28
0
 protected virtual void OnLocalUserLeftChannel(IrcLocalUser localUser, IrcChannelEventArgs e)
 {
 }
예제 #29
0
 protected virtual void OnLocalUserLeftChannel(IrcLocalUser localUser, IrcChannelEventArgs e)
 {
 }
예제 #30
0
 private void client_LocalUser_JoinedChannel(object sender, IrcChannelEventArgs e)
 {
     m_joinedEvent.Set();
     m_channel = e.Channel;
     m_channel.MessageReceived += channel_MessageReceived;
     m_channel.UserJoined += m_channel_UserJoined;
     m_channel.UsersListReceived += m_channel_UsersListReceived;
 }
예제 #31
0
파일: mainForm.cs 프로젝트: Foltik/SugoiRC
        private void ircClient_LocalUser_JoinedChannel(object sender, IrcChannelEventArgs e)
        {
            var localUser = (IrcLocalUser)sender;

            e.Channel.UserJoined += ircClient_Channel_UserJoined;
            e.Channel.UserLeft += ircClient_Channel_UserLeft;
            e.Channel.MessageReceived += ircClient_Channel_MessageReceived;
            e.Channel.NoticeReceived += ircClient_Channel_NoticeReceived;

            Console.WriteLine("You joined " + e.Channel.Name);
        }
예제 #32
0
 /// <summary>
 /// Locals the user on left channel.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The <see cref="IrcChannelEventArgs"/> instance containing the event data.
 /// </param>
 private void LocalUserOnLeftChannel(object sender, IrcChannelEventArgs e)
 {
     e.Channel.MessageReceived -= this.ChannelOnMessageReceived;
     e.Channel.TopicChanged -= this.ChannelOnTopicChanged;
     e.Channel.UserLeft  -= this.ChannelOnUserLeft;
     e.Channel.UserJoined -= this.ChannelOnUserJoined;
 }
예제 #33
0
 void OnIRCJoinedChannel(object sender, IrcChannelEventArgs e)
 {
     TShock.Log.ConsoleInfo("[TShockIRC] Connected to channel: " + e.Channel.Name);
     e.Channel.MessageReceived += OnChannelMessage;
     e.Channel.UserJoined += OnChannelJoined;
     e.Channel.UserKicked += OnChannelKicked;
     e.Channel.UserLeft += OnChannelLeft;
     e.Channel.UsersListReceived += OnChannelUsersList;
 }
예제 #34
0
 /// <summary>
 /// Raises the <see cref="LeftChannel"/> event.
 /// </summary>
 /// <param name="e">The <see cref="IrcChannelEventArgs"/> instance containing the event data.</param>
 protected virtual void OnLeftChannel(IrcChannelEventArgs e)
 {
     var handler = this.LeftChannel;
     if (handler != null)
         handler(this, e);
 }
예제 #35
0
        /// <summary>
        /// </summary>
        /// <param name="sender">
        /// </param>
        /// <param name="e">
        /// </param>
        private void IrcClient_LocalUser_LeftChannel(object sender, IrcChannelEventArgs e)
        {
            var localUser = (IrcLocalUser)sender;

            e.Channel.UserJoined -= this.IrcClient_Channel_UserJoined;
            e.Channel.UserLeft -= this.IrcClient_Channel_UserLeft;
            e.Channel.MessageReceived -= this.IrcClient_Channel_MessageReceived;
            e.Channel.NoticeReceived -= this.IrcClient_Channel_NoticeReceived;

            this.OnLocalUserJoinedChannel(localUser, e);
        }
예제 #36
0
 void JoinedChannel(object sender, IrcChannelEventArgs e)
 {
     e.Channel.MessageReceived += PublicMessageReceived;
 }
 protected override void OnLocalUserLeftChannel(IrcLocalUser localUser, IrcChannelEventArgs e)
 {
     //
 }
예제 #38
0
 void LeftChannel(object sender, IrcChannelEventArgs e)
 {
     e.Channel.MessageReceived -= PublicMessageReceived;
 }