Comparison

core/moduleapi.lua @ 13016:8aec903ea888

moduleapi: Add luacheck annotation to suppress warning about unused self This is a convenience function, and there is currently no module-specific code required to implement it. Not using 'self' is to be expected.
author Matthew Wild <mwild1@gmail.com>
date Sat, 01 Apr 2023 12:30:29 +0100
parent 13015:46c05c2e34f7
child 13201:65fb0d7a2312
comparison
equal deleted inserted replaced
13015:46c05c2e34f7 13016:8aec903ea888
692 return permit; 692 return permit;
693 end 693 end
694 end 694 end
695 695
696 -- Execute a function, once, but only after startup is complete 696 -- Execute a function, once, but only after startup is complete
697 function api:once(f) 697 function api:once(f) --luacheck: ignore 212/self
698 return prosody.started:next(f); 698 return prosody.started:next(f);
699 end 699 end
700 700
701 return api; 701 return api;