diff --exclude='*orig' -Naur psi-0.10-test3-orig/iris/include/im.h psi-0.10-test3/iris/include/im.h --- psi-0.10-test3-orig/iris/include/im.h 2005-12-07 00:58:34.000000000 +0000 +++ psi-0.10-test3/iris/include/im.h 2005-12-07 01:04:46.000000000 +0000 @@ -179,6 +179,9 @@ bool wasEncrypted() const; void setWasEncrypted(bool); + // JEP-0076 + void setEvil(bool); + Stanza toStanza(Stream *stream) const; bool fromStanza(const Stanza &s, int tzoffset); diff --exclude='*orig' -Naur psi-0.10-test3-orig/iris/xmpp-im/types.cpp psi-0.10-test3/iris/xmpp-im/types.cpp --- psi-0.10-test3-orig/iris/xmpp-im/types.cpp 2005-12-07 00:58:34.000000000 +0000 +++ psi-0.10-test3/iris/xmpp-im/types.cpp 2005-12-07 01:04:46.000000000 +0000 @@ -287,7 +287,7 @@ QString xencrypted, invitationReason, invitationPword; Jid invitationTo, invitationFrom; - bool spooled, wasEncrypted; + bool spooled, wasEncrypted, evil; bool declineInvite; }; @@ -301,6 +301,7 @@ d->to = to; d->spooled = false; d->wasEncrypted = false; + d->evil = false; d->declineInvite = false; d->muc_status = 0; @@ -677,6 +678,13 @@ d->wasEncrypted = b; } +// +k +void Message::setEvil(bool b) +{ + d->evil = b; +} +// -k + Stanza Message::toStanza(Stream *stream) const { Stanza s = stream->createStanza(Stanza::Message, d->to, d->type); @@ -889,6 +897,8 @@ // s.appendChild(e); // } + if(d->evil) + s.appendChild(s.createElement("http://jabber.org/protocol/evil", "evil")); return s; }