comparison mod_muc_rtbl/mod_muc_rtbl.lua @ 4809:9e9ec0f0b128

mod_muc_rtbl: Fix to hook server-started globally, to fetch entries at startup (thanks mirux)
author Matthew Wild <mwild1@gmail.com>
date Mon, 06 Dec 2021 12:02:45 +0000
parents 8a63a0daf129
children 181738ae4117
comparison
equal deleted inserted replaced
4808:8a63a0daf129 4809:9e9ec0f0b128
103 end); 103 end);
104 104
105 if prosody.start_time then 105 if prosody.start_time then
106 request_list(); 106 request_list();
107 else 107 else
108 module:hook("server-started", request_list); 108 module:hook_global("server-started", function ()
109 request_list();
110 end);
109 end 111 end