From a366c2e2ae808be4a7b3f00928b469089ca2c64d Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Sat, 19 Feb 2011 23:39:11 +0100 Subject: [PATCH] Fix mechanisms parsing --- src/XMPPConnection.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/XMPPConnection.m b/src/XMPPConnection.m index a12d881..b0195f0 100644 --- a/src/XMPPConnection.m +++ b/src/XMPPConnection.m @@ -286,8 +286,8 @@ OFXMLElement *bind = [elem elementsForName: @"bind" namespace: NS_BIND].firstObject; - for (OFXMLElement *mech in mechs) - [mechanisms addObject: mech.name]; + for (OFXMLElement *mech in [mechs.firstObject children]) + [mechanisms addObject: [mech.children.firstObject stringValue]]; if ([mechanisms containsObject: @"PLAIN"]) [self _sendPLAINAuth];