/// <summary> /// IRC event: a raw message was received by us. /// This is where custom parsing needs to take place. /// </summary> private void Client_RawMessageReceived(object sender, IrcRawMessageEventArgs e) { TmiLog.Debug("<<<", e.RawContent); if (e.RawContent.StartsWith('@')) { // Looks like a TMI message with state info that we can parse & process var tmiMsg = TmiMessageParser.Parse(e.RawContent); if (tmiMsg is TmiChatMessage) { if (OnChatMessage != null) { OnChatMessage.Invoke(this, new TmiChatMessageEventArgs((TmiChatMessage)tmiMsg)); } } } }
/// <summary> /// IRC event: a raw message was sent to the server by us. /// </summary> private void Client_RawMessageSent(object sender, IrcRawMessageEventArgs e) { TmiLog.Debug(">>>", e.RawContent); }