diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-04-14 17:33:54 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-04-14 19:14:56 +0200 |
commit | aa022204ee6f915fbc4668d5904e334b2a8f7041 (patch) | |
tree | a61d681ce92768cea2aff836651e7b3e3a929289 | |
parent | c1f23b566b447dbaa4a4ea6942b61128b3161c10 (diff) | |
download | slixmpp-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.py | 3 |
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): |