summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2014-06-07 20:20:42 -0700
committerLance Stout <lancestout@gmail.com>2014-06-07 20:20:42 -0700
commit02f79fc94b3c6702dfcc0ce84863ecc744837125 (patch)
treeb8461de5811a29840159ec77163baf3a41f4a657 /sleekxmpp/plugins
parent230a73fad270185f5f75832b12e4f94712bb2380 (diff)
downloadslixmpp-02f79fc94b3c6702dfcc0ce84863ecc744837125.tar.gz
slixmpp-02f79fc94b3c6702dfcc0ce84863ecc744837125.tar.bz2
slixmpp-02f79fc94b3c6702dfcc0ce84863ecc744837125.tar.xz
slixmpp-02f79fc94b3c6702dfcc0ce84863ecc744837125.zip
Only request auto-receipts for messages with bodies
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r--sleekxmpp/plugins/xep_0184/receipt.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0184/receipt.py b/sleekxmpp/plugins/xep_0184/receipt.py
index 1fda2066..3e97d8db 100644
--- a/sleekxmpp/plugins/xep_0184/receipt.py
+++ b/sleekxmpp/plugins/xep_0184/receipt.py
@@ -118,6 +118,9 @@ class XEP_0184(BasePlugin):
if stanza['receipt']:
return stanza
+ if not stanza['body']:
+ return stanza
+
if stanza['to'].resource:
if not self.xmpp['xep_0030'].supports(stanza['to'],
feature='urn:xmpp:receipts',