aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-01 09:56:22 +0200
committerKim Alvefur <zash@zash.se>2018-06-01 09:56:22 +0200
commit4a83d6a5563fbf4d52940a3ed148e2a37793c772 (patch)
treeff58eed42d56da1bef4023bf4259593dc781b7cb /plugins/muc/muc.lib.lua
parentcdc6d66d8e30f6b8dfd1138c648c25705535542b (diff)
downloadprosody-4a83d6a5563fbf4d52940a3ed148e2a37793c772.tar.gz
prosody-4a83d6a5563fbf4d52940a3ed148e2a37793c772.zip
MUC: Add some debug logging for voice requests
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 409d684e..eb6e2257 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1194,8 +1194,10 @@ function room_mt:handle_message_to_room(origin, stanza)
occupant = occupant;
};
if occupant.role == "moderator" then
+ module:log("debug", "%s responded to a voice request in %s", jid_resource(occupant.nick), self.jid);
module:fire_event("muc-voice-response", event);
else
+ module:log("debug", "%s requested voice in %s", jid_resource(occupant.nick), self.jid);
module:fire_event("muc-voice-request", event);
end
return true;