changeset 2613:9680cd958529

plugin XEP-0045: fixed crash when muc service is not found
author Goffi <goffi@goffi.org>
date Thu, 21 Jun 2018 01:21:44 +0200
parents 3e4e78de9cca
children a5b96950b81a
files sat/plugins/plugin_xep_0045.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0045.py	Thu Jun 21 01:21:44 2018 +0200
+++ b/sat/plugins/plugin_xep_0045.py	Thu Jun 21 01:21:44 2018 +0200
@@ -362,6 +362,8 @@
                 # use "conference/text" identity (instead of "conference/irc")
                 muc_service = service
                 break
+        else:
+            muc_service = None
         defer.returnValue(muc_service)
 
     def _getUniqueName(self, muc_service="", profile_key=C.PROF_KEY_NONE):