summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/gmail_notify.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-12-16 15:38:00 -0500
committerLance Stout <lancestout@gmail.com>2010-12-16 15:38:00 -0500
commit67775fb8bdd806517864354564cb30aa0a6b4d66 (patch)
tree2f8d09e9e30797e7a3ceca03a98f62563e09189b /sleekxmpp/plugins/gmail_notify.py
parente81683beeee5e7e03e05ad10320ebd1adb30269f (diff)
downloadslixmpp-67775fb8bdd806517864354564cb30aa0a6b4d66.tar.gz
slixmpp-67775fb8bdd806517864354564cb30aa0a6b4d66.tar.bz2
slixmpp-67775fb8bdd806517864354564cb30aa0a6b4d66.tar.xz
slixmpp-67775fb8bdd806517864354564cb30aa0a6b4d66.zip
Use boundjid in plugins instead of the deprecated accessors.
Originally contributed by skinkie, with a few modifications.
Diffstat (limited to 'sleekxmpp/plugins/gmail_notify.py')
-rw-r--r--sleekxmpp/plugins/gmail_notify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/gmail_notify.py b/sleekxmpp/plugins/gmail_notify.py
index 7e888b90..9a94a413 100644
--- a/sleekxmpp/plugins/gmail_notify.py
+++ b/sleekxmpp/plugins/gmail_notify.py
@@ -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()