Provides data for events that concern an IrcChannel.
Inheritance: 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);
        }
        /// <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
        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;
        }
        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
 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);
 }
        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);
     }
 }
 /// <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
        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;
 }