diff sat/plugins/plugin_xep_0048.py @ 2879:5ba98fd6c9a4

core: minor style improvments
author Goffi <goffi@goffi.org>
date Wed, 27 Mar 2019 21:15:25 +0100
parents 003b8b4b56a7
children 8990ed9aad31
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0048.py	Mon Mar 25 18:40:12 2019 +0100
+++ b/sat/plugins/plugin_xep_0048.py	Wed Mar 27 21:15:25 2019 +0100
@@ -298,7 +298,7 @@
                 )
                 xmlui.addText(data.get("name", ""))
                 xmlui.addJid(room_jid)
-                if data.get("autojoin", "false") == "true":
+                if C.bool(data.get("autojoin", C.BOOL_FALSE)):
                     xmlui.addText("autojoin")
                 else:
                     xmlui.addEmpty()