summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-16 19:32:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-16 19:32:48 (GMT)
commit2c5ef44b56d9c45254ea331a53fb6d8fe6efe7d1 (patch)
treee6e63729cbde4a894627a381af8dd6c4f7557a78 /Swiften/Serializer/PayloadSerializers
parent999f19158672bd6c91fa274a9f8e968b84f8a931 (diff)
downloadswift-contrib-2c5ef44b56d9c45254ea331a53fb6d8fe6efe7d1.zip
swift-contrib-2c5ef44b56d9c45254ea331a53fb6d8fe6efe7d1.tar.bz2
Added In-band-registration unsubscribe support to Swiften.
Diffstat (limited to 'Swiften/Serializer/PayloadSerializers')
-rw-r--r--Swiften/Serializer/PayloadSerializers/InBandRegistrationPayloadSerializer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Serializer/PayloadSerializers/InBandRegistrationPayloadSerializer.cpp b/Swiften/Serializer/PayloadSerializers/InBandRegistrationPayloadSerializer.cpp
index 8e8bcf2..5729df6 100644
--- a/Swiften/Serializer/PayloadSerializers/InBandRegistrationPayloadSerializer.cpp
+++ b/Swiften/Serializer/PayloadSerializers/InBandRegistrationPayloadSerializer.cpp
@@ -25,6 +25,10 @@ String InBandRegistrationPayloadSerializer::serializePayload(boost::shared_ptr<I
registerElement.addNode(XMLElement::ref(new XMLElement("registered")));
}
+ if (registration->isRemove()) {
+ registerElement.addNode(XMLElement::ref(new XMLElement("remove")));
+ }
+
if (registration->getInstructions()) {
registerElement.addNode(XMLElement::ref(new XMLElement("instructions", "", *registration->getInstructions())));
}