Software / code / prosody
Changeset
4390:5e84fb3c4ba0
mod_motd: Update to use module:get_option_string
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 27 Sep 2011 19:07:41 +0100 |
| parents | 4389:886eebf10802 |
| children | 4391:71083327f608 |
| files | plugins/mod_motd.lua |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_motd.lua Tue Sep 27 19:05:14 2011 +0100 +++ b/plugins/mod_motd.lua Tue Sep 27 19:07:41 2011 +0100 @@ -8,8 +8,8 @@ -- local host = module:get_host(); -local motd_text = module:get_option("motd_text"); -local motd_jid = module:get_option("motd_jid") or host; +local motd_text = module:get_option_string("motd_text"); +local motd_jid = module:get_option_string("motd_jid", host); if not motd_text then return; end