diff options
Diffstat (limited to 'Swiften/Serializer/PayloadSerializers/MUCInvitationPayloadSerializer.cpp')
-rw-r--r-- | Swiften/Serializer/PayloadSerializers/MUCInvitationPayloadSerializer.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/Swiften/Serializer/PayloadSerializers/MUCInvitationPayloadSerializer.cpp b/Swiften/Serializer/PayloadSerializers/MUCInvitationPayloadSerializer.cpp index ace52d5..4695f63 100644 --- a/Swiften/Serializer/PayloadSerializers/MUCInvitationPayloadSerializer.cpp +++ b/Swiften/Serializer/PayloadSerializers/MUCInvitationPayloadSerializer.cpp @@ -20,26 +20,26 @@ MUCInvitationPayloadSerializer::MUCInvitationPayloadSerializer() : GenericPayloa } std::string MUCInvitationPayloadSerializer::serializePayload(boost::shared_ptr<MUCInvitationPayload> payload) const { - XMLElement mucElement("x", "jabber:x:conference"); - if (payload->getIsContinuation()) { - mucElement.setAttribute("continue", "true"); - } - if (payload->getJID().isValid()) { - mucElement.setAttribute("jid", payload->getJID().toString()); - } - if (!payload->getPassword().empty()) { - mucElement.setAttribute("password", payload->getPassword()); - } - if (!payload->getReason().empty()) { - mucElement.setAttribute("reason", payload->getReason()); - } - if (!payload->getThread().empty()) { - mucElement.setAttribute("thread", payload->getThread()); - } - if (payload->getIsImpromptu()) { - mucElement.addNode(boost::make_shared<XMLElement>("impromptu", "http://swift.im/impromptu")); - } - return mucElement.serialize(); + XMLElement mucElement("x", "jabber:x:conference"); + if (payload->getIsContinuation()) { + mucElement.setAttribute("continue", "true"); + } + if (payload->getJID().isValid()) { + mucElement.setAttribute("jid", payload->getJID().toString()); + } + if (!payload->getPassword().empty()) { + mucElement.setAttribute("password", payload->getPassword()); + } + if (!payload->getReason().empty()) { + mucElement.setAttribute("reason", payload->getReason()); + } + if (!payload->getThread().empty()) { + mucElement.setAttribute("thread", payload->getThread()); + } + if (payload->getIsImpromptu()) { + mucElement.addNode(boost::make_shared<XMLElement>("impromptu", "http://swift.im/impromptu")); + } + return mucElement.serialize(); } |