Esempio n. 1
0
        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));
            }
        }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 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));
 }