private void dcc_MessageReceived(object sender, DccChatEventArgs e) { string text = e.Text; if (text.StartsWith("\u0001ACTION ") && text.EndsWith("\u0001") && text.Length > 9) { text = text.Substring(8, text.Length - 9); this.Write("Default", string.Format("{0} {1}", this.Target.Name, text)); } else { this.Write("Default", 0, this.Target.Name, e.Text, false); } }
public void PluginsOnDccChatSentLineEvent(object sender, DccChatEventArgs e) { OnDccChatSentLineEvent(this, e); }