summaryrefslogtreecommitdiff
path: root/protocols/Yahoo/src/im.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-10 20:34:21 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-10 20:34:21 +0000
commit7da04e3412a8e4837f3323fe6bdff95a598b3569 (patch)
tree4f64627f63b94107e0a607611ba9869406ed5f4c /protocols/Yahoo/src/im.cpp
parentb9cc87ed7878aa5613ac1587a9dfbfb31a312de1 (diff)
protocol DB helpers for YAHOO
git-svn-id: http://svn.miranda-ng.org/main/trunk@5323 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Yahoo/src/im.cpp')
-rw-r--r--protocols/Yahoo/src/im.cpp8
1 files changed, 3 insertions, 5 deletions
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);
- }
}
////////////////////////////////////////////////////////////////////////////////////////