Index: src/XMPPConnection.m ================================================================== --- src/XMPPConnection.m +++ src/XMPPConnection.m @@ -284,12 +284,12 @@ OFArray *mechs = [elem elementsForName: @"mechanisms" namespace: NS_SASL]; 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]; if (bind != nil)