Software /
code /
prosody-modules
Comparison
mod_motd_sequential/mod_motd_sequential.lua @ 3400:272908ea99c9
mod_motd_sequential: Fix for deprecation of global routing functions (fixes #1258)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 11 Dec 2018 18:26:31 +0100 |
parent | 2887:65082d91950e |
child | 3401:8412592f3011 |
comparison
equal
deleted
inserted
replaced
3399:39ec478a752e | 3400:272908ea99c9 |
---|---|
5 -- | 5 -- |
6 -- This project is MIT/X11 licensed. Please see the | 6 -- This project is MIT/X11 licensed. Please see the |
7 -- COPYING file in the source package for more information. | 7 -- COPYING file in the source package for more information. |
8 -- | 8 -- |
9 | 9 |
10 local core_route_stanza = prosody.core_route_stanza; | |
10 local host = module:get_host(); | 11 local host = module:get_host(); |
11 local motd_jid = module:get_option("motd_jid") or host; | 12 local motd_jid = module:get_option("motd_jid") or host; |
12 local datamanager = require "util.datamanager"; | 13 local datamanager = require "util.datamanager"; |
13 local ipairs = ipairs; | 14 local ipairs = ipairs; |
14 local motd_sequential_messages = module:get_option("motd_sequential_messages") or {}; | 15 local motd_sequential_messages = module:get_option("motd_sequential_messages") or {}; |