markstory/hubot-xmpp — pull request #13 by mbbx6spp (2012-07-07 04:35:07+00:00)
Title: Fix GTalk XMPP errors

Now fully working in a MUC setup on GTalk using the XMPP Hubot adapter and responding to commands nicely. Fixes two fundamental XMPP issues with the original Hubot adapter:

* Only send initial empty presence stanza. Since we do not need to set to non-default value (i.e. not 'available', which is default) then no need to send a non-empty type attribute presence stanza. See 5.2 of XMPP IEFT working document.
* Remove setting of from attribute from message stanza when responding to a message-based command as bot. Otherwise error is sent back by GTalk.