summaryrefslogtreecommitdiff
path: root/protocols/Yahoo/src/im.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-01-05 15:07:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-01-05 15:07:22 +0000
commit7dc3df386f9b0fadc115ff55eefb8fbeb1c3077a (patch)
treec8162e48af58f6d4ee4667cd6ca6400d01a9f7e5 /protocols/Yahoo/src/im.cpp
parent3cd763c7a9c62bfb1c1dc43246b2199ee9427e92 (diff)
- fix for Unicode popups;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@2980 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Yahoo/src/im.cpp')
-rw-r--r--protocols/Yahoo/src/im.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/Yahoo/src/im.cpp b/protocols/Yahoo/src/im.cpp
index 7b8b8b1ea1..52d21112ae 100644
--- a/protocols/Yahoo/src/im.cpp
+++ b/protocols/Yahoo/src/im.cpp
@@ -35,17 +35,17 @@ void CYahooProto::ext_got_im(const char *me, const char *who, int protocol, cons
const char *c = msg;
int oidx = 0;
PROTORECVEVENT pre;
- HANDLE hContact;
+ HANDLE hContact = NULL;
LOG(("YAHOO_GOT_IM id:%s %s: %s (len: %d) tm:%lu stat:%i utf8:%i buddy_icon: %i", me, who, msg, lstrlenA(msg), tm, stat, utf8, buddy_icon));
- if(stat == 2) {
+ if (stat == 2) {
char z[1024];
snprintf(z, sizeof z, "Error sending message to %s", who);
LOG((z));
- ShowError(Translate("Yahoo Error"), z);
+ ShowError( TranslateT("Yahoo Error"), _A2T(z));
return;
}
@@ -54,7 +54,7 @@ void CYahooProto::ext_got_im(const char *me, const char *who, int protocol, cons
return;
}
- if (GetByte( "IgnoreUnknown", 0 )) {
+ if (GetByte("IgnoreUnknown", 0)) {
/*
* Check our buddy list to see if we have it there. And if it's not on the list then we don't accept any IMs.
@@ -145,10 +145,10 @@ void CYahooProto::ext_got_im(const char *me, const char *who, int protocol, cons
if (buddy_icon < 0) return;
//?? Don't generate floods!!
- DBWriteContactSettingByte(hContact, m_szModuleName, "AvatarType", (BYTE)buddy_icon);
+ db_set_b(hContact, m_szModuleName, "AvatarType", (BYTE)buddy_icon);
if (buddy_icon != 2) {
reset_avatar(hContact);
- } else if (DBGetContactSettingDword(hContact, m_szModuleName,"PictCK", 0) == 0) {
+ } else if (db_get_dw(hContact, m_szModuleName,"PictCK", 0) == 0) {
/* request the buddy image */
request_avatar(who);
}
@@ -182,7 +182,7 @@ int __cdecl CYahooProto::SendMsg( HANDLE hContact, int flags, const char* pszSrc
char *msg;
int bANSI;
- bANSI = 0;/*GetByte( "DisableUTF8", 0 );*/
+ bANSI = 0;/*GetByte("DisableUTF8", 0);*/
if (!m_bLoggedIn) {/* don't send message if we not connected! */
YForkThread( &CYahooProto::im_sendackfail, hContact );