summaryrefslogtreecommitdiffstats
path: root/ephraim_conv.erl
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-06-14 21:26:33 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-06-14 21:26:33 +0200
commit3fe9171137838ede69a3a3e56dbc4b10049d9693 (patch)
tree3e8a8f70a986ce05229d85bb31048f7d4396b783 /ephraim_conv.erl
parentfcf338a9c6642dc95b123834977428187b2bb310 (diff)
downloadephraim-3fe9171137838ede69a3a3e56dbc4b10049d9693.tar
ephraim-3fe9171137838ede69a3a3e56dbc4b10049d9693.zip
Create process for every conversation
Diffstat (limited to 'ephraim_conv.erl')
-rw-r--r--ephraim_conv.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/ephraim_conv.erl b/ephraim_conv.erl
index c6243fa..d28cef8 100644
--- a/ephraim_conv.erl
+++ b/ephraim_conv.erl
@@ -12,7 +12,10 @@ loop(State) ->
receive
stop ->
ok;
+ {receive_message, Packet} ->
+ io:format("Received packet from ~p: ~p~n", [State#conv_state.jid, Packet]),
+ loop(State);
Msg ->
- io:format("ephraim_conv: ~p~n", [Msg]),
+ io:format("ephraim_conv (~p): ~p~n", [State#conv_state.jid, Msg]),
loop(State)
end.