From 945ae93e319c8367882bbd0c9e80ff3721d34524 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 16 Mar 2018 17:36:49 +0000 Subject: MUC: Use empty string if no subject provided (thanks pep+) --- plugins/muc/subject.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/muc') diff --git a/plugins/muc/subject.lib.lua b/plugins/muc/subject.lib.lua index 6f118b43..200b262d 100644 --- a/plugins/muc/subject.lib.lua +++ b/plugins/muc/subject.lib.lua @@ -14,7 +14,7 @@ local valid_roles = muc_util.valid_roles; 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) -- cgit v1.2.3