Mercurial > prosody-hg
diff plugins/muc/muc.lib.lua @ 8859:11176f47a03a
MUC: Add some debug logging for voice requests
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 01 Jun 2018 09:56:22 +0200 |
| parents | 538bb632a2b6 |
| children | 2a48255f889b |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Fri Jun 01 10:21:54 2018 +0200 +++ b/plugins/muc/muc.lib.lua Fri Jun 01 09:56:22 2018 +0200 @@ -1194,8 +1194,10 @@ 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;
