# HG changeset patch # User Matthew Wild # Date 1521221809 0 # Node ID b6b1f0f9b3817f30f0be8f080f4fb2c46e97b9ad # Parent 3a1efc0532cb43654a1b68330951c4217b50a462 MUC: Use empty string if no subject provided (thanks pep+) diff -r 3a1efc0532cb -r b6b1f0f9b381 plugins/muc/subject.lib.lua --- a/plugins/muc/subject.lib.lua Fri Mar 16 17:13:57 2018 +0000 +++ b/plugins/muc/subject.lib.lua Fri Mar 16 17:36:49 2018 +0000 @@ -14,7 +14,7 @@ local function create_subject_message(from, subject) return st.message({from = from; type = "groupchat"}) - :tag("subject"):text(subject):up(); + :tag("subject"):text(subject or ""):up(); end local function get_changesubject(room)