diff sat/plugins/plugin_xep_0045.py @ 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 f8e4d855001e
children d715d912afac
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):