Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 6199:fa858cd913b1
plugins/muc/muc.lib: Add muc-room-locked event
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Mon, 31 Mar 2014 14:46:59 -0400 |
parent | 6198:8936b9fbedfd |
child | 6200:57bc52f67564 |
comparison
equal
deleted
inserted
replaced
6198:8936b9fbedfd | 6199:fa858cd913b1 |
---|---|
86 end | 86 end |
87 end | 87 end |
88 end | 88 end |
89 | 89 |
90 function room_mt:lock() | 90 function room_mt:lock() |
91 module:fire_event("muc-room-locked", { room = self }); | |
91 self.locked = true | 92 self.locked = true |
92 end | 93 end |
93 function room_mt:unlock() | 94 function room_mt:unlock() |
94 module:fire_event("muc-room-unlocked", { room = self }); | 95 module:fire_event("muc-room-unlocked", { room = self }); |
95 self.locked = nil | 96 self.locked = nil |