Smuxi.Engine.XmppProtocolManager.OnPrivateChatMessageError C# (CSharp) Method

OnPrivateChatMessageError() private method

private OnPrivateChatMessageError ( Message msg, Smuxi.Engine.PersonChatModel chat ) : void
msg Message
chat Smuxi.Engine.PersonChatModel
return void
        void OnPrivateChatMessageError(Message msg, PersonChatModel chat)
        {
            var builder = CreateMessageBuilder();
            // TODO: nicer formatting
            if (msg.Error.ErrorText != null) {
                builder.AppendErrorText(msg.Error.ErrorText);
            } else {
                builder.AppendErrorText(msg.Error.ToString());
            }
            Session.AddMessageToChat(chat, builder.ToMessage());
        }