# HG changeset patch # User Goffi # Date 1526055486 -7200 # Node ID f8e4d855001edb0ac099f2a3b3e903008d637e5f # Parent 8378806a70fea1a5cff4db7410e7ab4ef0fc05f2 plugin XEP-0045: display a note when no configuration is available on the room diff -r 8378806a70fe -r f8e4d855001e sat/plugins/plugin_xep_0045.py --- a/sat/plugins/plugin_xep_0045.py Fri May 11 17:24:37 2018 +0200 +++ b/sat/plugins/plugin_xep_0045.py Fri May 11 18:18:06 2018 +0200 @@ -280,6 +280,9 @@ 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)