Mercurial > prosody-modules
diff mod_cloud_notify/mod_cloud_notify.lua @ 5650:0eb2d5ea2428
merge
| author | Stephen Paul Weber <singpolyma@singpolyma.net> |
|---|---|
| date | Sat, 06 May 2023 19:40:23 -0500 |
| parents | fd6cb4365438 |
| children | 61422d3c60fb |
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua Wed Feb 22 22:47:45 2023 -0500 +++ b/mod_cloud_notify/mod_cloud_notify.lua Sat May 06 19:40:23 2023 -0500 @@ -28,6 +28,10 @@ local id2node = {}; local id2identifier = {}; +if _VERSION:match("5%.1") then + module:log("warn", "This module may behave incorrectly on Lua 5.1. It is recommended to upgrade to a newer Lua version."); +end + -- For keeping state across reloads while caching reads -- This uses util.cache for caching the most recent devices and removing all old devices when max_push_devices is reached local push_store = (function()
