Software /
code /
prosody
Comparison
plugins/muc/members_only.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 | 7086:6cc7c9da29ed |
child | 7353:ca31d3271cf8 |
comparison
equal
deleted
inserted
replaced
7350:24e2369b67f9 | 7352:50b24b3476e6 |
---|---|
42 for occupant in pairs(occupants_changed) do | 42 for occupant in pairs(occupants_changed) do |
43 room:publicise_occupant_status(occupant, x); | 43 room:publicise_occupant_status(occupant, x); |
44 module:fire_event("muc-occupant-left", {room = room; nick = occupant.nick; occupant = occupant;}); | 44 module:fire_event("muc-occupant-left", {room = room; nick = occupant.nick; occupant = occupant;}); |
45 end | 45 end |
46 end | 46 end |
47 if room.save then room:save(true); end | 47 room:save(true); |
48 return true; | 48 return true; |
49 end | 49 end |
50 | 50 |
51 module:hook("muc-disco#info", function(event) | 51 module:hook("muc-disco#info", function(event) |
52 event.reply:tag("feature", {var = get_members_only(event.room) and "muc_membersonly" or "muc_open"}):up(); | 52 event.reply:tag("feature", {var = get_members_only(event.room) and "muc_membersonly" or "muc_open"}):up(); |