aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-03-16 17:36:49 +0000
committerMatthew Wild <mwild1@gmail.com>2018-03-16 17:36:49 +0000
commit9a63fdd773d2d37602d377d9d279c42cb6280fc5 (patch)
treec7fb32f2c7f5279c7d788990e22f70d439d4d5ae /plugins
parentf755b85ad14b0a6ae9d2f153ad0c7bcad9a5f892 (diff)
downloadprosody-9a63fdd773d2d37602d377d9d279c42cb6280fc5.tar.gz
prosody-9a63fdd773d2d37602d377d9d279c42cb6280fc5.zip
MUC: Use empty string if no subject provided (thanks pep+)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/subject.lib.lua2
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)