mod_carbons: Describe return types in a comment
For similarity with mod_mam, mod_csi_simple
--- a/plugins/mod_carbons.lua Sat May 09 00:48:22 2020 +0200
+++ b/plugins/mod_carbons.lua Sat May 09 00:50:59 2020 +0200
@@ -25,7 +25,7 @@
module:hook("iq-set/self/"..xmlns_carbons..":disable", toggle_carbons);
module:hook("iq-set/self/"..xmlns_carbons..":enable", toggle_carbons);
-local function should_copy(stanza, c2s, user_bare)
+local function should_copy(stanza, c2s, user_bare) --> boolean, reason: string
local st_type = stanza.attr.type or "normal";
if stanza:get_child("private", xmlns_carbons) then
return false, "private";