diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-03-16 17:36:49 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-03-16 17:36:49 +0000 |
commit | 945ae93e319c8367882bbd0c9e80ff3721d34524 (patch) | |
tree | c7fb32f2c7f5279c7d788990e22f70d439d4d5ae /plugins/muc/subject.lib.lua | |
parent | 0354f0902a359ed90dd405fdadb4c2bdd7c43df2 (diff) | |
download | prosody-945ae93e319c8367882bbd0c9e80ff3721d34524.tar.gz prosody-945ae93e319c8367882bbd0c9e80ff3721d34524.zip |
MUC: Use empty string if no subject provided (thanks pep+)
Diffstat (limited to 'plugins/muc/subject.lib.lua')
-rw-r--r-- | plugins/muc/subject.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |