comparison mod_muc_markers/mod_muc_markers.lua @ 4071:8e28d0918abc

mod_muc_markers: Add room JID to log message
author Matthew Wild <mwild1@gmail.com>
date Wed, 05 Aug 2020 14:57:10 +0100
parents 92152437ecfe
children 020dd0a59f1f
comparison
equal deleted inserted replaced
4070:268fa9d45840 4071:8e28d0918abc
61 if not marker or not marker_element_names:contains(marker.name) then 61 if not marker or not marker_element_names:contains(marker.name) then
62 return; -- No marker, or not one we are interested in 62 return; -- No marker, or not one we are interested in
63 end 63 end
64 64
65 -- Store the id that the user has received to 65 -- Store the id that the user has received to
66 module:log("warn", "New marker for %s: %s", event.occupant.bare_jid, marker.attr.id); 66 module:log("warn", "New marker for %s in %s: %s", event.occupant.bare_jid, event.room.jid, marker.attr.id);
67 muc_marker_map_store:set(event.occupant.bare_jid, event.room.jid, marker.attr.id); 67 muc_marker_map_store:set(event.occupant.bare_jid, event.room.jid, marker.attr.id);
68 68
69 end); 69 end);
70 70
71 module:hook("muc-message-is-historic", function (event) 71 module:hook("muc-message-is-historic", function (event)