Touched up the style of creating an Iq stanza.
This commit is contained in:
parent
938066bd50
commit
4f864a07f5
@ -291,7 +291,7 @@ class xep_0030(base.base_plugin):
|
|||||||
# Older interface methods for backwards compatibility
|
# Older interface methods for backwards compatibility
|
||||||
|
|
||||||
def getInfo(self, jid, node=''):
|
def getInfo(self, jid, node=''):
|
||||||
iq = Iq(self.xmpp)
|
iq = self.xmpp.Iq()
|
||||||
iq['type'] = 'get'
|
iq['type'] = 'get'
|
||||||
iq['to'] = jid
|
iq['to'] = jid
|
||||||
iq['from'] = self.xmpp.fulljid
|
iq['from'] = self.xmpp.fulljid
|
||||||
@ -299,7 +299,7 @@ class xep_0030(base.base_plugin):
|
|||||||
iq.send()
|
iq.send()
|
||||||
|
|
||||||
def getItems(self, jid, node=''):
|
def getItems(self, jid, node=''):
|
||||||
iq = Iq(self.xmpp)
|
iq = self.xmpp.Iq()
|
||||||
iq['type'] = 'get'
|
iq['type'] = 'get'
|
||||||
iq['to'] = jid
|
iq['to'] = jid
|
||||||
iq['from'] = self.xmpp.fulljid
|
iq['from'] = self.xmpp.fulljid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user