Software /
code /
prosody
Diff
plugins/muc/subject.lib.lua @ 8606:b6b1f0f9b381
MUC: Use empty string if no subject provided (thanks pep+)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 16 Mar 2018 17:36:49 +0000 |
parent | 7401:e16b3fd0bd80 |
child | 8848:402d8febfa43 |
line wrap: on
line diff
--- 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)