/// <summary> /// Raises the <see cref="UserKicked"/> event. /// </summary> /// <param name="e">The <see cref="IrcChannelUserEventArgs"/> instance containing the event data.</param> protected virtual void OnUserKicked(IrcChannelUserEventArgs e) { var handler = this.UserKicked; if (handler != null) { handler(this, e); } }
private void OnTwitchChannelLeft(object sender, IrcChannelUserEventArgs e) { if( settings.twitchLeaveJoinMessages ) SendMessage(new Message(String.Format("{1}{0} left ", settings.twitchChatAlias, e.ChannelUser.User.NickName), EndPoint.TwitchTV, EndPoint.SteamAdmin)); }
private void OnGohaChannelJoin(object sender, IrcChannelUserEventArgs e) { if (settings.gohaLeaveJoinMessages) SendMessage(new Message(String.Format("{1}{0} joined ",settings.gohaChatAlias, e.ChannelUser.User.NickName), EndPoint.Gohatv, EndPoint.SteamAdmin)); }
private void OnGohaChannelLeft(object sender, IrcChannelUserEventArgs e) { var nickName = e.ChannelUser.User.NickName; var chatAlias = settings.gohaChatAlias; var endPoint = EndPoint.Gohatv; if (!chatUsers.Exists(u => (u.NickName == nickName && u.EndPoint == endPoint))) chatUsers.Add(new ChatUser(null, nickName, endPoint)); if (settings.gohaLeaveJoinMessages) SendMessage(new UbiMessage(String.Format("{1}{0} left ", chatAlias, nickName), endPoint, EndPoint.SteamAdmin)); }
private void OnTwitchChannelJoin(object sender, IrcChannelUserEventArgs e) { lock (lockTwitchMessage) { if (settings.twitchLeaveJoinMessages) SendMessage(new UbiMessage(String.Format("{0} joined " + settings.twitchChatAlias, e.ChannelUser.User.NickName), EndPoint.TwitchTV, EndPoint.SteamAdmin)); } }
/// <summary> /// Raises the <see cref="UserKicked"/> event. /// </summary> /// <param name="e">The <see cref="IrcChannelUserEventArgs"/> instance containing the event data.</param> protected virtual void OnUserKicked(IrcChannelUserEventArgs e) { var handler = this.UserKicked; if (handler != null) handler(this, e); }