mod_welcome: Use type-specific config API
authorKim Alvefur <zash@zash.se>
Wed, 2 Mar 2016 15:42:59 +0000 (16:42 +0100)
committerKim Alvefur <zash@zash.se>
Wed, 2 Mar 2016 15:42:59 +0000 (16:42 +0100)
plugins/mod_welcome.lua

index 9c0c821b582b6b771c37f6a1672c8b17aad5f681..cd5118a74506a03311b572a180f5fb62d432b83c 100644 (file)
@@ -7,7 +7,7 @@
 --
 
 local host = module:get_host();
-local welcome_text = module:get_option("welcome_message") or "Hello $username, welcome to the $host IM server!";
+local welcome_text = module:get_option_string("welcome_message") or "Hello $username, welcome to the $host IM server!";
 
 local st = require "util.stanza";