From 7da04e3412a8e4837f3323fe6bdff95a598b3569 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 10 Jul 2013 20:34:21 +0000 Subject: protocol DB helpers for YAHOO git-svn-id: http://svn.miranda-ng.org/main/trunk@5323 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/src/im.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'protocols/Yahoo/src/im.cpp') diff --git a/protocols/Yahoo/src/im.cpp b/protocols/Yahoo/src/im.cpp index e2800095cf..0fb7aa160a 100644 --- a/protocols/Yahoo/src/im.cpp +++ b/protocols/Yahoo/src/im.cpp @@ -142,13 +142,11 @@ void CYahooProto::ext_got_im(const char *me, const char *who, int protocol, cons if (buddy_icon < 0) return; //?? Don't generate floods!! - db_set_b(hContact, m_szModuleName, "AvatarType", (BYTE)buddy_icon); - if (buddy_icon != 2) { + setByte(hContact, "AvatarType", (BYTE)buddy_icon); + if (buddy_icon != 2) reset_avatar(hContact); - } else if (db_get_dw(hContact, m_szModuleName,"PictCK", 0) == 0) { - /* request the buddy image */ + else if (getDword(hContact, "PictCK", 0) == 0) /* request the buddy image */ request_avatar(who); - } } //////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3