# HG changeset patch # User Kim Alvefur # Date 1588978259 -7200 # Node ID 04a0aa6d7e720739b134d69896773106a7f79e6d # Parent 7c503938ce1dba76ca3e838472704a74b0a7c9b2 mod_carbons: Describe return types in a comment For similarity with mod_mam, mod_csi_simple diff -r 7c503938ce1d -r 04a0aa6d7e72 plugins/mod_carbons.lua --- 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";