Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 7402:ef7ea3bad7a1
MUC: Don't force-save rooms where not needed
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 20 Apr 2016 12:29:31 +0200 |
| parents | e49737de9872 |
| children | 5a65750d959a |
comparison
equal
deleted
inserted
replaced
| 7401:e16b3fd0bd80 | 7402:ef7ea3bad7a1 |
|---|---|
| 707 event.field, event.value = submitted_field, fields[submitted_field]; | 707 event.field, event.value = submitted_field, fields[submitted_field]; |
| 708 module:fire_event("muc-config-submitted/"..submitted_field, event); | 708 module:fire_event("muc-config-submitted/"..submitted_field, event); |
| 709 end | 709 end |
| 710 event.field, event.value = nil, nil; | 710 event.field, event.value = nil, nil; |
| 711 | 711 |
| 712 self:save(true); | 712 self:save(); |
| 713 origin.send(st.reply(stanza)); | 713 origin.send(st.reply(stanza)); |
| 714 | 714 |
| 715 if next(event.status_codes) then | 715 if next(event.status_codes) then |
| 716 local msg = st.message({type='groupchat', from=self.jid}) | 716 local msg = st.message({type='groupchat', from=self.jid}) |
| 717 :tag('x', {xmlns='http://jabber.org/protocol/muc#user'}) | 717 :tag('x', {xmlns='http://jabber.org/protocol/muc#user'}) |
| 1157 end); | 1157 end); |
| 1158 end | 1158 end |
| 1159 end | 1159 end |
| 1160 end | 1160 end |
| 1161 | 1161 |
| 1162 self:save(true); | 1162 self:save(); |
| 1163 | 1163 |
| 1164 module:fire_event("muc-set-affiliation", { | 1164 module:fire_event("muc-set-affiliation", { |
| 1165 room = self; | 1165 room = self; |
| 1166 actor = actor; | 1166 actor = actor; |
| 1167 jid = jid; | 1167 jid = jid; |
