2002-11-18 21:39:47 +01:00
|
|
|
%%%----------------------------------------------------------------------
|
|
|
|
%%% File : ejabberd.hrl
|
|
|
|
%%% Author : Alexey Shchepin <alexey@sevcom.net>
|
|
|
|
%%% Purpose :
|
|
|
|
%%% Created : 17 Nov 2002 by Alexey Shchepin <alexey@sevcom.net>
|
|
|
|
%%% Id : $Id$
|
|
|
|
%%%----------------------------------------------------------------------
|
|
|
|
|
2005-04-22 18:47:16 +02:00
|
|
|
-define(VERSION, "0.9.1-alpha").
|
2003-01-18 20:42:48 +01:00
|
|
|
|
2003-01-28 20:45:13 +01:00
|
|
|
%-define(ejabberd_debug, true).
|
|
|
|
%-define(DBGFSM, true).
|
2002-11-18 21:39:47 +01:00
|
|
|
|
|
|
|
-ifdef(ejabberd_debug).
|
|
|
|
-define(DEBUG(Format, Args), io:format("D(~p:~p:~p) : "++Format++"~n",
|
|
|
|
[self(),?MODULE,?LINE]++Args)).
|
|
|
|
-else.
|
|
|
|
-define(DEBUG(F,A),[]).
|
|
|
|
-endif.
|
|
|
|
|
2003-01-15 20:54:44 +01:00
|
|
|
-define(ERROR_MSG(Format, Args),
|
2003-05-09 21:32:59 +02:00
|
|
|
error_logger:error_msg("E(~p:~p:~p): "++Format++"~n",
|
|
|
|
[self(),?MODULE,?LINE]++Args)).
|
|
|
|
|
|
|
|
-define(INFO_MSG(Format, Args),
|
|
|
|
error_logger:info_msg("I(~p:~p:~p): "++Format++"~n",
|
|
|
|
[self(),?MODULE,?LINE]++Args)).
|
2003-01-15 20:54:44 +01:00
|
|
|
|
2002-12-07 21:27:26 +01:00
|
|
|
|
2005-04-17 20:08:34 +02:00
|
|
|
-define(MYHOSTS, ejabberd_config:get_global_option(hosts)).
|
|
|
|
-define(MYNAME, hd(ejabberd_config:get_global_option(hosts))).
|
2003-01-28 20:45:13 +01:00
|
|
|
-define(S2STIMEOUT, 600000).
|
2004-07-10 00:34:26 +02:00
|
|
|
-define(MYLANG, ejabberd_config:get_global_option(language)).
|
2002-12-07 21:27:26 +01:00
|
|
|
|
2003-01-06 20:57:05 +01:00
|
|
|
-define(MSGS_DIR, "msgs").
|
2003-01-07 20:10:35 +01:00
|
|
|
-define(CONFIG_PATH, "ejabberd.cfg").
|
2003-05-09 21:32:59 +02:00
|
|
|
-define(LOG_PATH, "ejabberd.log").
|
2003-01-06 20:57:05 +01:00
|
|
|
|
2003-08-18 21:17:28 +02:00
|
|
|
|
|
|
|
-define(PRIVACY_SUPPORT, true).
|
|
|
|
|