Software / code / prosody
Comparison
plugins/mod_motd.lua @ 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 |
| parent | 4389:886eebf10802 |
| child | 4649:e07ce18c503e |
comparison
equal
deleted
inserted
replaced
| 4389:886eebf10802 | 4390:5e84fb3c4ba0 |
|---|---|
| 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 host = module:get_host(); | 10 local host = module:get_host(); |
| 11 local motd_text = module:get_option("motd_text"); | 11 local motd_text = module:get_option_string("motd_text"); |
| 12 local motd_jid = module:get_option("motd_jid") or host; | 12 local motd_jid = module:get_option_string("motd_jid", host); |
| 13 | 13 |
| 14 if not motd_text then return; end | 14 if not motd_text then return; end |
| 15 | 15 |
| 16 local st = require "util.stanza"; | 16 local st = require "util.stanza"; |
| 17 | 17 |