mod_carbons: Describe return types in a comment
authorKim Alvefur <zash@zash.se>
Sat, 09 May 2020 00:50:59 +0200
changeset 10822 04a0aa6d7e72
parent 10821 7c503938ce1d
child 10823 5f4093e80cfa
mod_carbons: Describe return types in a comment For similarity with mod_mam, mod_csi_simple
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";