Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2007-08-25 21:24:00 +0400
committerAlexey Shchepin <alexey@process-one.net>2007-08-25 21:24:00 +0400
commit5dfa6edda35848f13252afa32eae1f1818b072e6 (patch)
tree0162c87a8ba7382af4e16a2965f55e798f69b709 /src/mod_echo.erl
parent24ff98d50d551c21a92177347a377888a853350f (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_echo.erl')
-rw-r--r--src/mod_echo.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mod_echo.erl b/src/mod_echo.erl
index 5d7474ac7..b75929958 100644
--- a/src/mod_echo.erl
+++ b/src/mod_echo.erl
@@ -3,12 +3,10 @@
%%% Author : Alexey Shchepin <alexey@sevcom.net>
%%% Purpose :
%%% Created : 15 Jan 2003 by Alexey Shchepin <alexey@sevcom.net>
-%%% Id : $Id$
%%%----------------------------------------------------------------------
-module(mod_echo).
-author('alexey@sevcom.net').
--vsn('$Revision$ ').
-behaviour(gen_server).
-behaviour(gen_mod).
@@ -68,7 +66,7 @@ stop(Host) ->
%% Description: Initiates the server
%%--------------------------------------------------------------------
init([Host, Opts]) ->
- MyHost = gen_mod:get_opt(host, Opts, "echo." ++ Host),
+ MyHost = gen_mod:get_opt_host(Host, Opts, "echo.@HOST@"),
ejabberd_router:register_route(MyHost),
{ok, #state{host = MyHost}}.