# HG changeset patch # User Matthew Wild # Date 1638792165 0 # Node ID 9e9ec0f0b128b62afedcdc6452cf11354abde1d5 # Parent 8a63a0daf12933c7542a55d790e747c4831ff5e7 mod_muc_rtbl: Fix to hook server-started globally, to fetch entries at startup (thanks mirux) diff -r 8a63a0daf129 -r 9e9ec0f0b128 mod_muc_rtbl/mod_muc_rtbl.lua --- a/mod_muc_rtbl/mod_muc_rtbl.lua Mon Dec 06 10:36:02 2021 +0000 +++ b/mod_muc_rtbl/mod_muc_rtbl.lua Mon Dec 06 12:02:45 2021 +0000 @@ -105,5 +105,7 @@ if prosody.start_time then request_list(); else - module:hook("server-started", request_list); + module:hook_global("server-started", function () + request_list(); + end); end