/* * Copyright (c) 2010 Kevin Smith * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #include #include #include #include #include #include #include namespace Swift { void MUCPayloadParser::handleTree(ParserElement::ref root) { BOOST_FOREACH (ParserElement::ref child, root->getAllChildren()) { if (child->getName() == "password" && child->getNamespace() == root->getNamespace()) { getPayloadInternal()->setPassword(child->getText()); } } } }