Fix mechanisms parsing

This commit is contained in:
Florian Zeitz 2011-02-19 23:39:11 +01:00
parent 33d34dc5b1
commit a366c2e2ae

View file

@ -286,8 +286,8 @@
OFXMLElement *bind = [elem elementsForName: @"bind" OFXMLElement *bind = [elem elementsForName: @"bind"
namespace: NS_BIND].firstObject; namespace: NS_BIND].firstObject;
for (OFXMLElement *mech in mechs) for (OFXMLElement *mech in [mechs.firstObject children])
[mechanisms addObject: mech.name]; [mechanisms addObject: [mech.children.firstObject stringValue]];
if ([mechanisms containsObject: @"PLAIN"]) if ([mechanisms containsObject: @"PLAIN"])
[self _sendPLAINAuth]; [self _sendPLAINAuth];