mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +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
|
# 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…
Reference in a new issue