summaryrefslogtreecommitdiffstats
path: root/src/core/ephraim.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ephraim.erl')
-rw-r--r--src/core/ephraim.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ephraim.erl b/src/core/ephraim.erl
index b32e1d7..a7a872b 100644
--- a/src/core/ephraim.erl
+++ b/src/core/ephraim.erl
@@ -121,12 +121,14 @@ loop(State) ->
State#state.event ! {receive_event, From, Packet},
loop(State);
- {receive_iq, IQ} ->
+ {receive_iq, From, IQ} ->
case IQ of
{iq, response, result, _, 'jabber:iq:roster', Payload, _, _, 'jabber:client'} ->
State#state.roster ! {roster_iq, Payload};
+ {iq, response, result, _, 'vcard-temp', Payload, _, _, 'jabber:client'} ->
+ State#state.roster ! {vcard_iq, From, Payload};
_ ->
- io:format("ephraim: IQ: ~p~n", [IQ])
+ io:format("ephraim: IQ from ~p: ~p~n", [From, IQ])
end,
loop(State);