emulate client behavior a little bit
Merge pull request #33 from node-xmpp/moar-fix

Moar fix