# HG changeset patch # User Goffi # Date 1396277822 -7200 # Node ID 2eb4fef29795c438844bc04cab963d1ca9570729 # Parent 132de9d487ac9cedaf03eca132b9f5904c7f461e plulgin XEP-0115: fixed caps_optimize init diff -r 132de9d487ac -r 2eb4fef29795 src/plugins/plugin_xep_0115.py --- a/src/plugins/plugin_xep_0115.py Mon Mar 31 16:08:15 2014 +0200 +++ b/src/plugins/plugin_xep_0115.py Mon Mar 31 16:57:02 2014 +0200 @@ -61,10 +61,12 @@ return XEP_0115_handler(self, profile) def _checkHash(self, disco_d, profile): + client = self.host.getClient(profile) + client.caps_optimize = None + if XEP_0115.cap_hash is None: disco_d.addCallback(lambda dummy: self.host.hasFeature(NS_CAPS_OPTIMIZE, profile_key=profile)) def updateOptimize(optimize): - client = self.host.getClient(profile) client.caps_optimize = optimize if optimize: info(_("Caps optimisation enabled"))