From 10e7cbb20ef12a5d87c5aa45b8868bcc7697d937 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Sun, 12 Sep 2004 02:12:38 +0000 Subject: [PATCH] Fixes a bug parsing MUCOwner packets. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2380 b35dd754-fafc-0310-a699-88a17e54d16e --- .../jivesoftware/smackx/provider/MUCOwnerProvider.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/org/jivesoftware/smackx/provider/MUCOwnerProvider.java b/source/org/jivesoftware/smackx/provider/MUCOwnerProvider.java index 7822a7836..a204e7b75 100644 --- a/source/org/jivesoftware/smackx/provider/MUCOwnerProvider.java +++ b/source/org/jivesoftware/smackx/provider/MUCOwnerProvider.java @@ -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) {