Changeset

10818:04a0aa6d7e72

mod_carbons: Describe return types in a comment For similarity with mod_mam, mod_csi_simple
author Kim Alvefur <zash@zash.se>
date Sat, 09 May 2020 00:50:59 +0200
parents 10817:7c503938ce1d
children 10819:5f4093e80cfa
files plugins/mod_carbons.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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";