Diff

plugins/adhoc/mod_adhoc.lua @ 11209:f6661fac7e9a

mod_adhoc: Log commands provided at debug level
author Kim Alvefur <zash@zash.se>
date Sun, 22 Nov 2020 00:52:49 +0100
parent 10565:421b2f8369fd
child 12387:05c250fa335a
line wrap: on
line diff
--- a/plugins/adhoc/mod_adhoc.lua	Sun Nov 15 14:48:59 2020 +0100
+++ b/plugins/adhoc/mod_adhoc.lua	Sun Nov 22 00:52:49 2020 +0100
@@ -91,6 +91,8 @@
 
 local function adhoc_added(event)
 	local item = event.item;
+	-- Dang this was noicy
+	module:log("debug", "Command added by mod_%s: %q, %q", item._provided_by or "<unknown module>", item.name, item.node);
 	commands[item.node] = item;
 end