Commit aceef5cd authored by Philipp Hörist's avatar Philipp Hörist

Protocol: Add buildSimpleReply()

parent 37aff3c4
......@@ -1571,6 +1571,12 @@ class Iq(Protocol):
iq.setQuery(self.getQuery().getName()).setNamespace(self.getQueryNS())
return iq
def buildSimpleReply(self, typ):
return Iq(typ,
to=self.getFrom(),
attrs={'id': self.getID()})
class Hashes(Node):
"""
Hash elements for various XEPs as defined in XEP-300
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment