summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-04-14 17:33:54 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-04-14 19:14:56 +0200
commitaa022204ee6f915fbc4668d5904e334b2a8f7041 (patch)
treea61d681ce92768cea2aff836651e7b3e3a929289
parentc1f23b566b447dbaa4a4ea6942b61128b3161c10 (diff)
downloadslixmpp-aa022204ee6f915fbc4668d5904e334b2a8f7041.tar.gz
slixmpp-aa022204ee6f915fbc4668d5904e334b2a8f7041.tar.bz2
slixmpp-aa022204ee6f915fbc4668d5904e334b2a8f7041.tar.xz
slixmpp-aa022204ee6f915fbc4668d5904e334b2a8f7041.zip
XEP-0047: don’t answer with an unauthorized error when block-size is too big.
-rw-r--r--slixmpp/plugins/xep_0047/ibb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0047/ibb.py b/slixmpp/plugins/xep_0047/ibb.py
index aa4e6afc..958d1544 100644
--- a/slixmpp/plugins/xep_0047/ibb.py
+++ b/slixmpp/plugins/xep_0047/ibb.py
@@ -94,8 +94,7 @@ class XEP_0047(BasePlugin):
def _authorized(self, jid, sid, ifrom, iq):
if self.auto_accept:
- if iq['ibb_open']['block_size'] <= self.max_block_size:
- return True
+ return True
return False
def _authorized_sid(self, jid, sid, ifrom, iq):