From 8f70b2528f6c93a88858f0924fb5efbe005c97f9 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 11 May 2018 18:18:06 +0200 Subject: [PATCH] plugin XEP-0045: display a note when no configuration is available on the room --- sat/plugins/plugin_xep_0045.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sat/plugins/plugin_xep_0045.py b/sat/plugins/plugin_xep_0045.py index 18c87bb1..40c973e9 100755 --- a/sat/plugins/plugin_xep_0045.py +++ b/sat/plugins/plugin_xep_0045.py @@ -280,6 +280,9 @@ class XEP_0045(object): return defer.fail(exceptions.DataError) def xmluiReceived(xmlui): + if not xmlui: + msg = D_(u"No configuration available for this room") + return {"xmlui": xml_tools.note(msg).toXml()} return {"xmlui": xmlui.toXml()} return self.configureRoom(client, room_jid).addCallback(xmluiReceived)