Use boundjid in plugins instead of the deprecated accessors.

Originally contributed by skinkie, with a few modifications.
This commit is contained in:
Lance Stout
2010-12-16 15:38:00 -05:00
parent e81683beee
commit 67775fb8bd
5 changed files with 21 additions and 21 deletions

View File

@@ -143,7 +143,7 @@ class gmail_notify(base.base_plugin):
log.info('Gmail: Searching for emails matching: "%s"' % query)
iq = self.xmpp.Iq()
iq['type'] = 'get'
iq['to'] = self.xmpp.jid
iq['to'] = self.xmpp.boundjid.bare
iq['gmail']['q'] = query
iq['gmail']['newer-than-time'] = newer
return iq.send()