robbiehanson/XMPPFramework — pull request #143 by noa-- (2013-01-22 18:30:37+00:00)
Title: Fix node creation when using options dictionary

1. Create node should precede configure node instead of following it
2. The values in the options dictionary should be the option values, and the keys the field names, instead of reversed

The current version of -createNode:WithOptions: works correctly only when there are no options, since the node is then omitted entirely.

I tested this on two servers (ejabberd and jabberd2) and had the same problem: both return a 501 feature-not-implemented when the element appears before the element.

I tested the fix with ejabberd.