Add a packet JID place I missed...

This commit is contained in:
Sam Whited 2014-11-06 14:46:09 -05:00
parent f108fc5a5c
commit 864f319500

View File

@ -19,7 +19,7 @@ public class IqGenerator extends AbstractGenerator {
public IqPacket discoResponse(IqPacket request) {
IqPacket packet = new IqPacket(IqPacket.TYPE_RESULT);
packet.setId(request.getId());
packet.setAttribute("to", request.getFrom());
packet.setTo(request.getFrom());
Element query = packet.addChild("query",
"http://jabber.org/protocol/disco#info");
query.setAttribute("node", request.query().getAttribute("node"));