Mercurial > prosody-hg
view util/mathcompat.lua @ 13908:356c8ec22e9a
MUC: Add basic "GC3" participant (affiliation) list fetch
RSM version currently held back until a planned restructuring of how we
store affiliations in MUC. This is because RSM needs a stable ordered list,
which we don't currently have.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 26 Jun 2025 15:17:57 +0100 |
| parents | 8815d3090928 |
| children |
line wrap: on
line source
if not math.type then local function math_type(t) if type(t) == "number" then if t % 1 == 0 and t ~= t + 1 and t ~= t - 1 then return "integer" else return "float" end end end _G.math.type = math_type end
