25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

*** empty log message ***

SVN Revision: 38
This commit is contained in:
Alexey Shchepin 2003-01-13 20:51:17 +00:00
parent 563587a4ce
commit c4d76dec7d
5 changed files with 9 additions and 4 deletions

View File

@ -6,7 +6,8 @@
%%% Id : $Id$ %%% Id : $Id$
%%%---------------------------------------------------------------------- %%%----------------------------------------------------------------------
-define(ejabberd_debug, true). %-define(ejabberd_debug, true).
%-define(DBGFSM, true).
-ifdef(ejabberd_debug). -ifdef(ejabberd_debug).
-define(DEBUG(Format, Args), io:format("D(~p:~p:~p) : "++Format++"~n", -define(DEBUG(Format, Args), io:format("D(~p:~p:~p) : "++Format++"~n",

View File

@ -246,6 +246,10 @@ handle_sync_event(Event, From, StateName, StateData) ->
handle_info({send_text, Text}, StateName, StateData) -> handle_info({send_text, Text}, StateName, StateData) ->
send_text(StateData#state.sender, Text), send_text(StateData#state.sender, Text),
{next_state, StateName, StateData}; {next_state, StateName, StateData};
handle_info(replaced, StateName, StateData) ->
% TODO
%send_text(StateData#state.sender, Text),
{stop, normal, StateData#state{user = ""}};
handle_info({route, From, To, Packet}, StateName, StateData) -> handle_info({route, From, To, Packet}, StateName, StateData) ->
{xmlelement, Name, Attrs, Els} = Packet, {xmlelement, Name, Attrs, Els} = Packet,
{FU, FS, FR} = From, {FU, FS, FR} = From,

View File

@ -29,7 +29,7 @@
-record(state, {socket, receiver, streamid, -record(state, {socket, receiver, streamid,
myname, server, queue}). myname, server, queue}).
-define(DBGFSM, true). %-define(DBGFSM, true).
-ifdef(DBGFSM). -ifdef(DBGFSM).
-define(FSMOPTS, [{debug, [trace]}]). -define(FSMOPTS, [{debug, [trace]}]).

View File

@ -30,7 +30,7 @@
myname, server, xmlpid, queue, myname, server, xmlpid, queue,
new = false, verify = false}). new = false, verify = false}).
-define(DBGFSM, true). %-define(DBGFSM, true).
-ifdef(DBGFSM). -ifdef(DBGFSM).
-define(FSMOPTS, [{debug, [trace]}]). -define(FSMOPTS, [{debug, [trace]}]).

View File

@ -31,7 +31,7 @@
-record(state, {socket, receiver, streamid, -record(state, {socket, receiver, streamid,
host, password}). host, password}).
-define(DBGFSM, true). %-define(DBGFSM, true).
-ifdef(DBGFSM). -ifdef(DBGFSM).
-define(FSMOPTS, [{debug, [trace]}]). -define(FSMOPTS, [{debug, [trace]}]).