Software /
code /
prosody
Comparison
plugins/muc/persistent.lib.lua @ 9014:326fedc1d3c6
MUC: Unset persistence of destroyed rooms later in event chain
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 11 Jul 2018 03:28:45 +0200 |
parent | 7401:e16b3fd0bd80 |
child | 9034:1c709e3d2e5e |
comparison
equal
deleted
inserted
replaced
9013:a54bcc76cd22 | 9014:326fedc1d3c6 |
---|---|
37 event.reply:tag("feature", {var = get_persistent(event.room) and "muc_persistent" or "muc_temporary"}):up(); | 37 event.reply:tag("feature", {var = get_persistent(event.room) and "muc_persistent" or "muc_temporary"}):up(); |
38 end); | 38 end); |
39 | 39 |
40 module:hook("muc-room-destroyed", function(event) | 40 module:hook("muc-room-destroyed", function(event) |
41 set_persistent(event.room, false); | 41 set_persistent(event.room, false); |
42 end); | 42 end, -100); |
43 | 43 |
44 return { | 44 return { |
45 get = get_persistent; | 45 get = get_persistent; |
46 set = set_persistent; | 46 set = set_persistent; |
47 }; | 47 }; |