aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/moderated.lib.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/muc/moderated.lib.lua b/plugins/muc/moderated.lib.lua
index 7f086555..644b84b6 100644
--- a/plugins/muc/moderated.lib.lua
+++ b/plugins/muc/moderated.lib.lua
@@ -68,8 +68,9 @@ end);
module:hook("muc-voice-response", function(event)
local actor = event.stanza.attr.from;
local affected_occupant = event.room:get_occupant_by_real_jid(event.fields["muc#jid"]);
+ local occupant = event.occupant;
- if event.occupant.role ~= "moderator" then
+ if occupant.role ~= "moderator" then
return;
end