diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-07-13 07:30:46 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-07-13 07:30:46 +0200 |
commit | 4716cfc2cbf012a070fec8db4856c1761f8a50ee (patch) | |
tree | 5f774e7968a919e153aca3f3046371bbb78deb5c /src/core/ephraim.erl | |
parent | 99df39229cc6a0c5e447705ddc577e180b82c04c (diff) | |
download | ephraim-4716cfc2cbf012a070fec8db4856c1761f8a50ee.tar ephraim-4716cfc2cbf012a070fec8db4856c1761f8a50ee.zip |
Added VCard support to roster
Diffstat (limited to 'src/core/ephraim.erl')
-rw-r--r-- | src/core/ephraim.erl | 6 |
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); |