1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 22:12:05 +01:00

Fixes a bug parsing MUCOwner packets.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2380 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-09-12 02:12:38 +00:00 committed by gdombiak
parent c395074c86
commit 10e7cbb20e

View file

@ -75,16 +75,13 @@ public class MUCOwnerProvider implements IQProvider {
if (parser.getName().equals("item")) {
mucOwner.addItem(parseItem(parser));
}
if (parser.getName().equals("destroy")) {
else if (parser.getName().equals("destroy")) {
mucOwner.setDestroy(parseDestroy(parser));
}
// Otherwise, it must be a packet extension.
else {
mucOwner.addExtension(
PacketParserUtils.parsePacketExtension(
parser.getName(),
parser.getNamespace(),
parser));
mucOwner.addExtension(PacketParserUtils.parsePacketExtension(parser.getName(),
parser.getNamespace(), parser));
}
}
else if (eventType == XmlPullParser.END_TAG) {