Software /
code /
prosody
Comparison
plugins/muc/affiliation_notify.lib.lua @ 7352:50b24b3476e6
MUC: Provide a noop stub room:save() method
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 14 Apr 2016 21:23:09 +0200 |
parent | 6991:84e01dbb739e |
child | 7353:ca31d3271cf8 |
comparison
equal
deleted
inserted
replaced
7350:24e2369b67f9 | 7352:50b24b3476e6 |
---|---|
22 | 22 |
23 local function set_affiliation_notify(room, affiliation_notify) | 23 local function set_affiliation_notify(room, affiliation_notify) |
24 affiliation_notify = affiliation_notify and true or nil; | 24 affiliation_notify = affiliation_notify and true or nil; |
25 if room._data.affiliation_notify == affiliation_notify then return false; end | 25 if room._data.affiliation_notify == affiliation_notify then return false; end |
26 room._data.affiliation_notify = affiliation_notify; | 26 room._data.affiliation_notify = affiliation_notify; |
27 if room.save then room:save(true); end | 27 room:save(true); |
28 return true; | 28 return true; |
29 end | 29 end |
30 | 30 |
31 module:hook("muc-config-form", function(event) | 31 module:hook("muc-config-form", function(event) |
32 table.insert(event.form, { | 32 table.insert(event.form, { |