Software /
code /
prosody
Changeset
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 |
parents | 8605:3a1efc0532cb |
children | 8607:62bb06cf8a43 |
files | plugins/muc/subject.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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)