# HG changeset patch # User Matthew Wild # Date 1678184698 0 # Node ID fd6cb4365438298a7e3a082f8d167cbeb16bed4c # Parent d5492bc861f67d5354e415b7fca16d785c92ad71 mod_cloud_notify: Log warning when used on Lua 5.1 diff -r d5492bc861f6 -r fd6cb4365438 mod_cloud_notify/mod_cloud_notify.lua --- a/mod_cloud_notify/mod_cloud_notify.lua Mon Mar 06 16:53:27 2023 +0100 +++ b/mod_cloud_notify/mod_cloud_notify.lua Tue Mar 07 10:24:58 2023 +0000 @@ -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()