From 6ec7efc36f44dfddff4c9d843cd4c70cffb95837 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 17 Aug 2010 00:22:21 +0200 Subject: Many improvements to roster view --- src/core/ephraim.erl | 2 +- src/core/ephraim_roster.erl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/ephraim.erl b/src/core/ephraim.erl index c8783f0..c59be72 100644 --- a/src/core/ephraim.erl +++ b/src/core/ephraim.erl @@ -143,7 +143,7 @@ loop(State) -> {iq, response, result, _, 'vcard-temp', Payload, _, _, 'jabber:client'} -> State#state.roster ! {vcard_iq, From, Payload}; _ -> - io:format("ephraim: IQ from ~p: ~p~n", [From, IQ]) + ok %io:format("ephraim: IQ from ~p: ~p~n", [From, IQ]) end, loop(State); diff --git a/src/core/ephraim_roster.erl b/src/core/ephraim_roster.erl index aa31fd1..362b788 100644 --- a/src/core/ephraim_roster.erl +++ b/src/core/ephraim_roster.erl @@ -125,7 +125,6 @@ handleRosterIQ(Roster, Item) -> Subscription = binary_to_atom(exmpp_xml:get_attribute(Item, subscription, undefined), utf8), ephraim ! {send_packet, exmpp_stanza:set_recipient(exmpp_iq:get('jabber:client', #xmlel{ns='vcard-temp',name='vCard'}), JID)}, - io:format("ephraim_roster: ~p~n", [exmpp_stanza:set_recipient(exmpp_iq:get('jabber:client', #xmlel{ns='vcard-temp',name='vCard'}), JID)]), updateRosterEntry(Roster, JID, Name, Subscription, Groups). @@ -215,6 +214,6 @@ loop(Roster) -> loop(Roster); Msg -> - io:format("ephraim_roster: ~p~n", [Msg]), + %io:format("ephraim_roster: ~p~n", [Msg]), loop(Roster) end. -- cgit v1.2.3