void TAccountXmpp::ChatLog_DisplayStanza(const CXmlNode * pXmlNodeMessageStanza) { Assert(pXmlNodeMessageStanza != NULL); TContact * pContact = Contact_PFindByJID(IN pXmlNodeMessageStanza->PszFindAttributeValueFrom_NZ(), eFindContact_kmCreateAsUnsolicited); // Find the contact matching the the stanza if (pContact != NULL) pContact->ChatLogContact_DisplayStanzaToUI(pXmlNodeMessageStanza); else MessageLog_AppendTextFormatSev(eSeverityErrorWarning, "Unable to deliver message from unknown peer:\n^N", pXmlNodeMessageStanza); // This happens when the stanza is incomplete and the JID is not adequate to create a contact }