changeset 4308:2d42dd45638a

mod_muc_mention_notifications: Remove debugging helpers
author JC Brand <jc@opkode.com>
date Mon, 21 Dec 2020 16:01:28 +0100
parents af7297e49885
children e8b9228b5265
files mod_muc_mention_notifications/mod_muc_mention_notifications.lua
diffstat 1 files changed, 0 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- 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