diff options
author | Lance Stout <lancestout@gmail.com> | 2012-07-30 09:08:58 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-07-30 09:08:58 -0700 |
commit | 44ce01a70b7926a1e1f4af6692be3bdc671f7318 (patch) | |
tree | c6992b7420f3731cea595b4d382c2d2987a7554a /sleekxmpp/plugins/xep_0153 | |
parent | c2189b4ecd6b022ed9900a6f411bd7e9d57c47ce (diff) | |
parent | e4b4c676379df30d268d28341b643cd9cd10eb22 (diff) | |
download | slixmpp-44ce01a70b7926a1e1f4af6692be3bdc671f7318.tar.gz slixmpp-44ce01a70b7926a1e1f4af6692be3bdc671f7318.tar.bz2 slixmpp-44ce01a70b7926a1e1f4af6692be3bdc671f7318.tar.xz slixmpp-44ce01a70b7926a1e1f4af6692be3bdc671f7318.zip |
Merge branch 'master' into develop
Diffstat (limited to 'sleekxmpp/plugins/xep_0153')
-rw-r--r-- | sleekxmpp/plugins/xep_0153/vcard_avatar.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0153/vcard_avatar.py b/sleekxmpp/plugins/xep_0153/vcard_avatar.py index da90fdc5..d940ead1 100644 --- a/sleekxmpp/plugins/xep_0153/vcard_avatar.py +++ b/sleekxmpp/plugins/xep_0153/vcard_avatar.py @@ -87,6 +87,9 @@ class XEP_0153(BasePlugin): if not isinstance(stanza, Presence): return stanza + if stanza['type'] not in ('available', 'dnd', 'chat', 'away', 'xa'): + return stanza + current_hash = self.api['get_hash'](stanza['from']) stanza['vcard_temp_update']['photo'] = current_hash return stanza |