# HG changeset patch # User JC Brand # Date 1608562888 -3600 # Node ID 2d42dd45638ae5d8397fe9f881edc705cce4f117 # Parent af7297e498859ecfbcbfd2279c60204145f4b8b3 mod_muc_mention_notifications: Remove debugging helpers diff -r af7297e49885 -r 2d42dd45638a mod_muc_mention_notifications/mod_muc_mention_notifications.lua --- a/mod_muc_mention_notifications/mod_muc_mention_notifications.lua Mon Dec 21 15:43:35 2020 +0100 +++ b/mod_muc_mention_notifications/mod_muc_mention_notifications.lua Mon Dec 21 16:01:28 2020 +0100 @@ -13,18 +13,6 @@ local deplay_xmlns = "urn:xmpp:delay"; -module:log("debug", "**************************************") -module:log("debug", "**************************************") -module:log("debug", "**************************************") -module:log("debug", "**************************************") -module:log("debug", "**************************************") -module:log("debug", "**************************************") -module:log("debug", "**************************************") -module:log("debug", "**************************************") -module:log("debug", "**************************************") -module:log("debug", "**************************************") -module:log("debug", "**************************************") - -- Returns a set of rooms the user is affiliated to local function get_user_rooms(user_bare_jid) return muc_affiliation_store:get_all(user_bare_jid); @@ -92,16 +80,7 @@ return has_mentions, client_mentions end -if rawget(_G, "setfenv") == nil then - rawset(_G, "setfenv", false) -end -if rawget(_G, "getfenv") == nil then - rawset(_G, "getfenv", false) -end - module:hook("muc-broadcast-message", function (event) - - require("mobdebug").start() local room, stanza = event.room, event.stanza; local body = stanza:get_child_text("body") if not body or #body < 1 then return; end