From aa022204ee6f915fbc4668d5904e334b2a8f7041 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 14 Apr 2015 17:33:54 +0200 Subject: =?UTF-8?q?XEP-0047:=20don=E2=80=99t=20answer=20with=20an=20unauth?= =?UTF-8?q?orized=20error=20when=20block-size=20is=20too=20big.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- slixmpp/plugins/xep_0047/ibb.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'slixmpp/plugins/xep_0047') 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): -- cgit v1.2.3