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 | 9a63fdd773d2d37602d377d9d279c42cb6280fc5 (patch) | |
tree | c7fb32f2c7f5279c7d788990e22f70d439d4d5ae | |
parent | f755b85ad14b0a6ae9d2f153ad0c7bcad9a5f892 (diff) | |
download | prosody-9a63fdd773d2d37602d377d9d279c42cb6280fc5.tar.gz prosody-9a63fdd773d2d37602d377d9d279c42cb6280fc5.zip |
MUC: Use empty string if no subject provided (thanks pep+)
-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) |