changeset 986:8b1250df82e8

mod_support_contact: Use module:get_option_string()
author Kim Alvefur <zash@zash.se>
date Wed, 24 Apr 2013 10:20:55 +0200 (2013-04-24)
parents 93ef813dfd06
children fabff75bfc3f
files mod_support_contact/mod_support_contact.lua
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mod_support_contact/mod_support_contact.lua	Wed Apr 24 09:34:22 2013 +0200
+++ b/mod_support_contact/mod_support_contact.lua	Wed Apr 24 10:20:55 2013 +0200
@@ -7,14 +7,13 @@
 
 local host = module:get_host();
 
-local support_contact = module:get_option("support_contact") or "support@"..host;
-local support_contact_nick = module:get_option("support_contact_nick") or "Support";
-local support_contact_group = module:get_option("support_contact_group") or "Users";
+local support_contact = module:get_option_string("support_contact", "support@"..host);
+local support_contact_nick = module:get_option_string("support_contact_nick", "Support");
+local support_contact_group = module:get_option_string("support_contact_group", "Users");
 
 if not(support_contact and support_contact_nick) then return; end
 
 local rostermanager = require "core.rostermanager";
-local datamanager = require "util.datamanager";
 local jid_split = require "util.jid".split;
 local st = require "util.stanza";