From fece4176cb07bfe47dd5091a9c0eb6d69a6a107e Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 21 Sep 2012 13:53:41 +0000 Subject: fix for saving phone number (patch by d.k.Brazz) (fixes #42) git-svn-id: http://svn.miranda-ng.org/main/trunk@1622 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/jabber_iqid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/JabberG/jabber_iqid.cpp') diff --git a/protocols/JabberG/jabber_iqid.cpp b/protocols/JabberG/jabber_iqid.cpp index a4a5d5a5f2..acac62cfdb 100644 --- a/protocols/JabberG/jabber_iqid.cpp +++ b/protocols/JabberG/jabber_iqid.cpp @@ -996,11 +996,11 @@ void CJabberProto::OnIqResultGetVcard( HXML iqNode ) hasFax = TRUE; JSetStringT( hContact, "Fax", xmlGetText( m )); } - if ( !hasCell && xmlGetChild( n , "CELL" )!=NULL ) { + else if ( !hasCell && xmlGetChild( n , "CELL" )!=NULL ) { hasCell = TRUE; JSetStringT( hContact, "Cellular", xmlGetText( m )); } - if ( !hasPhone && + else if ( !hasPhone && ( xmlGetChild( n , "HOME" )!=NULL || xmlGetChild( n , "WORK" )!=NULL || xmlGetChild( n , "VOICE" )!=NULL || -- cgit v1.2.3