Touched up the style of creating an Iq stanza.

This commit is contained in:
Lance stout 2010-05-28 22:45:48 +08:00 committed by Nathan Fritz
parent 938066bd50
commit 4f864a07f5

View file

@ -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