aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java')
-rw-r--r--src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java b/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java
index 3ab3b6c3..9e288454 100644
--- a/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java
+++ b/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java
@@ -63,5 +63,13 @@ public class IqPacket extends AbstractStanza {
return 1000;
}
}
+
+ public IqPacket generateRespone(int type) {
+ IqPacket packet = new IqPacket(type);
+ packet.setFrom(this.getTo());
+ packet.setTo(this.getFrom());
+ packet.setId(this.getId());
+ return packet;
+ }
}