summaryrefslogtreecommitdiffstats
path: root/src/core/ephraim_conv.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ephraim_conv.erl')
-rw-r--r--src/core/ephraim_conv.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/ephraim_conv.erl b/src/core/ephraim_conv.erl
index b502166..3010036 100644
--- a/src/core/ephraim_conv.erl
+++ b/src/core/ephraim_conv.erl
@@ -2,12 +2,13 @@
-compile([debug_info, export_all]).
-record(conv_state, {
- jid :: exmpp_jid:jid()
+ jid :: binary()
}).
--spec init(exmpp_jid:jid()) -> ok.
+-spec init(binary()) -> ok.
init(JID) ->
io:format("Starting a conversation with ~p~n", [JID]),
+
loop(#conv_state{jid=JID}),
io:format("Stopping a conversation with ~p~n", [JID]).
@@ -18,7 +19,7 @@ loop(State) ->
ok;
{receive_message, Packet} ->
- io:format("Received packet from ~p:~n~p~n", [State#conv_state.jid, Packet]),
+ io:format("Received message from ~p:~n~p~n", [State#conv_state.jid, Packet]),
loop(State);
Msg ->