diff options
author | Alexey Shchepin <alexey@process-one.net> | 2007-08-25 17:24:00 +0000 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2007-08-25 17:24:00 +0000 |
commit | 5dfa6edda35848f13252afa32eae1f1818b072e6 (patch) | |
tree | 0162c87a8ba7382af4e16a2965f55e798f69b709 /src/mod_vcard_odbc.erl | |
parent | Fixed conflict (diff) |
* src/gen_mod.erl: Substitute @HOST@ with hostname in the 'host'
option (thanks to Badlop)
* src/mod_vcard.erl: Likewise
* src/mod_vcard_ldap.erl: Likewise
* src/mod_vcard_odbc.erl: Likewise
* src/mod_muc/mod_muc.erl: Likewise
* src/mod_irc/mod_irc.erl: Likewise
* src/mod_echo.erl: Likewise
* src/mod_pubsub/mod_pubsub.erl: Likewise
* src/mod_proxy65/mod_proxy65_service.erl: Likewise
SVN Revision: 888
Diffstat (limited to 'src/mod_vcard_odbc.erl')
-rw-r--r-- | src/mod_vcard_odbc.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mod_vcard_odbc.erl b/src/mod_vcard_odbc.erl index 4eaa8926e..278040ed0 100644 --- a/src/mod_vcard_odbc.erl +++ b/src/mod_vcard_odbc.erl @@ -3,12 +3,10 @@ %%% Author : Alexey Shchepin <alexey@sevcom.net> %%% Purpose : vCard support via ODBC %%% Created : 2 Jan 2003 by Alexey Shchepin <alexey@sevcom.net> -%%% Id : $Id$ %%%---------------------------------------------------------------------- -module(mod_vcard_odbc). -author('alexey@sevcom.net'). --vsn('$Revision$ '). -behaviour(gen_mod). @@ -35,7 +33,7 @@ start(Host, Opts) -> gen_iq_handler:add_iq_handler(ejabberd_sm, Host, ?NS_VCARD, ?MODULE, process_sm_iq, IQDisc), ejabberd_hooks:add(disco_sm_features, Host, ?MODULE, get_sm_features, 50), - MyHost = gen_mod:get_opt(host, Opts, "vjud." ++ Host), + MyHost = gen_mod:get_opt_host(Host, Opts, "vjud.@HOST@"), Search = gen_mod:get_opt(search, Opts, true), register(gen_mod:get_module_proc(Host, ?PROCNAME), spawn(?MODULE, init, [MyHost, Host, Search])). |