internal void HandleNoticeReceived(IIrcMessageSource source, IList <IIrcMessageTarget> targets, string text) { var previewEventArgs = new IrcPreviewMessageEventArgs(source, targets, text, this.Client.TextEncoding); OnPreviewNoticeReceived(previewEventArgs); if (!previewEventArgs.Handled) { OnNoticeReceived(new IrcMessageEventArgs(source, targets, text, this.Client.TextEncoding)); } }
/// <summary> /// Raises the <see cref="PreviewNoticeReceived"/> event. /// </summary> /// <param name="e">The <see cref="IrcPreviewMessageEventArgs"/> instance containing the event data.</param> protected virtual void OnPreviewNoticeReceived(IrcPreviewMessageEventArgs e) { var handler = this.PreviewNoticeReceived; if (handler != null) handler(this, e); }
internal void HandleNoticeReceived(IIrcMessageSource source, IList<IIrcMessageTarget> targets, string text) { var previewEventArgs = new IrcPreviewMessageEventArgs(source, targets, text, this.Client.TextEncoding); OnPreviewNoticeReceived(previewEventArgs); if (!previewEventArgs.Handled) OnNoticeReceived(new IrcMessageEventArgs(source, targets, text, this.Client.TextEncoding)); }