From 784e99fa49ebac9f9282f20d22773384c3c2fccb Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 21 Jun 2018 01:21:44 +0200 Subject: [PATCH] plugin XEP-0045: fixed crash when muc service is not found --- sat/plugins/plugin_xep_0045.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sat/plugins/plugin_xep_0045.py b/sat/plugins/plugin_xep_0045.py index 40c973e9..ae86118f 100755 --- a/sat/plugins/plugin_xep_0045.py +++ b/sat/plugins/plugin_xep_0045.py @@ -362,6 +362,8 @@ class XEP_0045(object): # 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):