Diff

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
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