Extend the IQ API to create empty IQ results and IQ error response packets
Since all IQ stanzas of type get and set should be replied with either an IQ result or error stanza, an easy to use API to create such responses should be introduced.
You're right, thanks! I've corrected the patch, added a unit test and committed it to revision 11669.
Nice patch but you forgot to set the id of the new iq the the id of the one given.
A small static function within the IQ class could do the job.