/// <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); } }
/// <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); } }
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); } }
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); }
/// <summary> /// </summary> /// <param name="localUser"> /// </param> /// <param name="e"> /// </param> protected abstract void OnLocalUserLeftChannel(IrcLocalUser localUser, IrcChannelEventArgs e);
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); }
private void OnJoinedChannel(object sender, IrcChannelEventArgs e) { StartTasks(); SubscribeToChannelEvents(e.Channel); }
protected override void OnLocalUserLeftChannel(IrcLocalUser localUser, IrcChannelEventArgs e) { // }
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); }
private static void IrcClient_LocalUser_LeftChannel(object sender, IrcChannelEventArgs e) { e.Channel.MessageReceived -= IrcClient_Channel_MessageReceived; }
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); }
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; }
private void client_LocalUser_LeftChannel(object sender, IrcChannelEventArgs e) { WriteDiagnosticMessage("Left Channel: {0}: {1}", e.Channel, e.Comment); }
protected override void OnLocalUserLeftChannel(IrcLocalUser localUser, IrcChannelEventArgs e) { Trace.TraceInformation("OnLocalUserLeftChannel"); }
protected override void OnLocalUserJoinedChannel(IrcLocalUser localUser, IrcChannelEventArgs e) { SendGreeting(localUser, e.Channel); }
protected override void OnLocalUserJoinedChannel(IrcLocalUser localUser, IrcChannelEventArgs e) { ChannelsToRejoin.Add(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) { 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); }
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("> "); }
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; }
protected override void OnLocalUserLeftChannel(IrcLocalUser localUser, IrcChannelEventArgs e) { if(AutoRejoin) { localUser.Client.Channels.Join(e.Channel.Name); } }
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; }
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); }
protected virtual void OnLocalUserLeftChannel(IrcLocalUser localUser, IrcChannelEventArgs e) { }
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; }
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); }
/// <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; }
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; }
/// <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); }
/// <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); }
void JoinedChannel(object sender, IrcChannelEventArgs e) { e.Channel.MessageReceived += PublicMessageReceived; }
void LeftChannel(object sender, IrcChannelEventArgs e) { e.Channel.MessageReceived -= PublicMessageReceived; }