Comparison

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
parent 8856:538bb632a2b6
child 8861:2a48255f889b
comparison
equal deleted inserted replaced
8858:2096742859c1 8859:11176f47a03a
1192 stanza = stanza; 1192 stanza = stanza;
1193 fields = fields; 1193 fields = fields;
1194 occupant = occupant; 1194 occupant = occupant;
1195 }; 1195 };
1196 if occupant.role == "moderator" then 1196 if occupant.role == "moderator" then
1197 module:log("debug", "%s responded to a voice request in %s", jid_resource(occupant.nick), self.jid);
1197 module:fire_event("muc-voice-response", event); 1198 module:fire_event("muc-voice-response", event);
1198 else 1199 else
1200 module:log("debug", "%s requested voice in %s", jid_resource(occupant.nick), self.jid);
1199 module:fire_event("muc-voice-request", event); 1201 module:fire_event("muc-voice-request", event);
1200 end 1202 end
1201 return true; 1203 return true;
1202 end 1204 end
1203 end 1205 end