From 2fe00cdd66d4559cc43a5f27c19ddc79a43676eb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Jul 2013 10:51:35 +0000 Subject: - all manual list locks removed; - ListExists removed and replaced with ListGetItemPtr; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@5426 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/JabberG/src/jabber_thread.cpp') diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index a37074a14c..d16a5a1f15 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -1609,7 +1609,7 @@ void CJabberProto::OnProcessPresence(HXML node, ThreadData* info) if (m_presenceManager.HandlePresencePermanent(node, info)) return; - if (ListExist(LIST_CHATROOM, from)) { + if (ListGetItemPtr(LIST_CHATROOM, from)) { GroupchatProcessPresence(node); return; } @@ -1629,14 +1629,14 @@ void CJabberProto::OnProcessPresence(HXML node, ThreadData* info) return; if ((hContact = HContactFromJID(from)) == NULL) { - if ( !_tcsicmp(info->fullJID, from) || (!bSelfPresence && !ListExist(LIST_ROSTER, from))) { + if ( !_tcsicmp(info->fullJID, from) || (!bSelfPresence && !ListGetItemPtr(LIST_ROSTER, from))) { Log("SKIP Receive presence online from %S (who is not in my roster and not in list - skiping)", from); mir_free(nick); return; } hContact = DBCreateContact(from, nick, TRUE, TRUE); } - if ( !ListExist(LIST_ROSTER, from)) { + if ( !ListGetItemPtr(LIST_ROSTER, from)) { Log("Receive presence online from %S (who is not in my roster)", from); ListAdd(LIST_ROSTER, from); } -- cgit v1.2.3