diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-06-25 04:36:06 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-06-25 04:36:06 +0200 |
commit | 3eb7e7688dea39fa83f41c1f9aba79a962ef1a15 (patch) | |
tree | 91d91bfb779f2d502d88af1e5dec53f5fab23905 /src/core/ephraim_conv.erl | |
parent | d5adf274c137bef22d5695d4a280e10068edcb0e (diff) | |
download | ephraim-3eb7e7688dea39fa83f41c1f9aba79a962ef1a15.tar ephraim-3eb7e7688dea39fa83f41c1f9aba79a962ef1a15.zip |
Create conversation tabs for new conversations
Diffstat (limited to 'src/core/ephraim_conv.erl')
-rw-r--r-- | src/core/ephraim_conv.erl | 7 |
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 -> |