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
1 changed files with 1 additions and 1 deletions

View File

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