XEP-0047: don’t answer with an unauthorized error when block-size is too big.

This commit is contained in:
Emmanuel Gil Peyrot 2015-04-14 17:33:54 +02:00
parent c1f23b566b
commit aa022204ee

View File

@ -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):