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$
|
|
|
|
%%%----------------------------------------------------------------------
|
2003-01-28 20:45:13 +01:00
|
|
|
%-define(ejabberd_debug, true).
|
|
|
|
%-define(DBGFSM, true).
|
2002-11-18 21:39:47 +01:00
|
|
|
|
2006-12-04 17:07:44 +01:00
|
|
|
-define(VERSION, "1.1.2").
|
|
|
|
|
|
|
|
%% ---------------------------------
|
|
|
|
%% Logging mechanism
|
2002-11-18 21:39:47 +01:00
|
|
|
|
2006-12-04 17:07:44 +01:00
|
|
|
-define(DEBUG(Format, Args),
|
|
|
|
ejabberd_logger:debug_msg(?MODULE,?LINE,Format, Args)).
|
2003-05-09 21:32:59 +02:00
|
|
|
|
|
|
|
-define(INFO_MSG(Format, Args),
|
2006-12-04 17:07:44 +01:00
|
|
|
ejabberd_logger:info_msg(?MODULE,?LINE,Format, Args)).
|
|
|
|
|
|
|
|
-define(WARNING_MSG(Format, Args),
|
|
|
|
ejabberd_logger:warning_msg(?MODULE,?LINE,Format, Args)).
|
|
|
|
|
|
|
|
-define(ERROR_MSG(Format, Args),
|
|
|
|
ejabberd_logger:error_msg(?MODULE,?LINE,Format, Args)).
|
2003-01-15 20:54:44 +01:00
|
|
|
|
2006-12-04 17:07:44 +01:00
|
|
|
-define(CRITICAL_MSG(Format, Args),
|
|
|
|
ejabberd_logger:critical_msg(?MODULE,?LINE,Format, Args)).
|
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).
|
|
|
|
|
2006-10-28 04:04:55 +02:00
|
|
|
-define(EJABBERD_URI, "http://ejabberd.jabber.ru").
|