From d454d9a66e096cdb35ca1101d4fd501f57be55f6 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 31 Mar 2014 12:23:13 +0200 Subject: [PATCH] plugin XEP-0045: profileConnected return the deferred, so muc service presence is checked before the end of initialisation --- src/plugins/plugin_xep_0045.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/plugin_xep_0045.py b/src/plugins/plugin_xep_0045.py index f32ee2ac..3f7b82a7 100755 --- a/src/plugins/plugin_xep_0045.py +++ b/src/plugins/plugin_xep_0045.py @@ -83,7 +83,7 @@ class XEP_0045(object): def assign_service(service): client = self.host.getClient(profile) client.muc_service = service - self.getMUCService(profile_key=profile).addCallback(assign_service) + return self.getMUCService(profile_key=profile).addCallback(assign_service) def __check_profile(self, profile): """check if profile is used and connected