Software /
code /
prosody
Diff
plugins/mod_carbons.lua @ 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 |
parent | 10802:c11f9cd6c761 |
child | 10820:e0a09d3af563 |
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";