mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-12-24 11:50:53 +00:00
Touched up the style of creating an Iq stanza.
This commit is contained in:
parent
938066bd50
commit
4f864a07f5
1 changed files with 2 additions and 2 deletions
|
@ -291,7 +291,7 @@ class xep_0030(base.base_plugin):
|
|||
# Older interface methods for backwards compatibility
|
||||
|
||||
def getInfo(self, jid, node=''):
|
||||
iq = Iq(self.xmpp)
|
||||
iq = self.xmpp.Iq()
|
||||
iq['type'] = 'get'
|
||||
iq['to'] = jid
|
||||
iq['from'] = self.xmpp.fulljid
|
||||
|
@ -299,7 +299,7 @@ class xep_0030(base.base_plugin):
|
|||
iq.send()
|
||||
|
||||
def getItems(self, jid, node=''):
|
||||
iq = Iq(self.xmpp)
|
||||
iq = self.xmpp.Iq()
|
||||
iq['type'] = 'get'
|
||||
iq['to'] = jid
|
||||
iq['from'] = self.xmpp.fulljid
|
||||
|
|
Loading…
Reference in a new issue