astro/node-xmpp — pull request #92 by kartikrustagi (2012-10-28 15:23:06+00:00)
Title: Linking registration reply to callback

On receiving a registration stanza we enter C2SStream.prototype.onRegistration and we were sending success reply for stanza.attrs.type === 'set' case delinking it to the value of 'error' in the callback to 'register' event.
Making self.send(reply) part of callback mitigates this bug.