Software /
code /
prosody-modules
Diff
mod_support_contact/mod_support_contact.lua @ 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 |
parent | 777:e5413b66aeec |
child | 1343:7dbde05b48a9 |
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";