projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27ea87a
)
MUC: Save room after subject is changed
author
Kim Alvefur
<zash@zash.se>
Fri, 15 Apr 2016 16:03:55 +0000
(18:03 +0200)
committer
Kim Alvefur
<zash@zash.se>
Fri, 15 Apr 2016 16:03:55 +0000
(18:03 +0200)
plugins/muc/subject.lib.lua
patch
|
blob
|
history
diff --git
a/plugins/muc/subject.lib.lua
b/plugins/muc/subject.lib.lua
index 8f5f923184c946c61c961db348d08211ee72fe7b..45aa6934ebf4d15b6ea583acedecf65599dbf2d3 100644
(file)
--- a/
plugins/muc/subject.lib.lua
+++ b/
plugins/muc/subject.lib.lua
@@
-82,6
+82,7
@@
module:hook("muc-occupant-groupchat", function(event)
if role_rank >= valid_roles.moderator or
( role_rank >= valid_roles.participant and get_changesubject(event.room) ) then -- and participant
set_subject(event.room, occupant.nick, subject:get_text());
+ room:save();
return true;
else
event.origin.send(st.error_reply(stanza, "auth", "forbidden"));