diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-11 14:01:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-11 14:01:25 +0000 |
commit | 773421e8ba17637d994088c393d406226b516a30 (patch) | |
tree | 130c0bf529e30f493ae4f2abbe1230d31fecdeed /protocols/Yahoo/src/services.cpp | |
parent | 3fc8b6f686262e8a595fc10b2bd947526ca77bdc (diff) |
- m_hNetlibUser moved to PROTO_INTERFACE;
- unified protocol loggers
git-svn-id: http://svn.miranda-ng.org/main/trunk@6435 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Yahoo/src/services.cpp')
-rw-r--r-- | protocols/Yahoo/src/services.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/protocols/Yahoo/src/services.cpp b/protocols/Yahoo/src/services.cpp index 397f655ad2..0df9cbbf41 100644 --- a/protocols/Yahoo/src/services.cpp +++ b/protocols/Yahoo/src/services.cpp @@ -71,7 +71,7 @@ void CYahooProto::BroadcastStatus(int s) m_iStatus = ID_STATUS_ONLINE;
}
- DebugLog("[yahoo_util_broadcaststatus] Old Status: %S (%d), New Status: %S (%d)",
+ debugLogA("[yahoo_util_broadcaststatus] Old Status: %S (%d), New Status: %S (%d)",
pcli->pfnGetStatusModeDescription(oldStatus, 0), oldStatus,
pcli->pfnGetStatusModeDescription(m_iStatus, 0), m_iStatus);
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE) oldStatus, (LPARAM)m_iStatus);
@@ -85,26 +85,26 @@ int __cdecl CYahooProto::OnContactDeleted( WPARAM wParam, LPARAM lParam ) DBVARIANT dbv;
HANDLE hContact = (HANDLE) wParam;
- DebugLog("[YahooContactDeleted]");
+ debugLogA("[YahooContactDeleted]");
if ( !m_bLoggedIn ) {//should never happen for Yahoo contacts
- DebugLog("[YahooContactDeleted] We are not Logged On!!!");
+ debugLogA("[YahooContactDeleted] We are not Logged On!!!");
return 0;
}
// he is not a permanent contact!
if (db_get_b(hContact, "CList", "NotOnList", 0) != 0) {
- DebugLog("[YahooContactDeleted] Not a permanent buddy!!!");
+ debugLogA("[YahooContactDeleted] Not a permanent buddy!!!");
return 0;
}
if (!getString(hContact, YAHOO_LOGINID, &dbv)) {
- DebugLog("[YahooContactDeleted] Removing %s", dbv.pszVal);
+ debugLogA("[YahooContactDeleted] Removing %s", dbv.pszVal);
remove_buddy(dbv.pszVal, getWord(hContact, "yprotoid", 0));
db_free(&dbv);
} else {
- DebugLog("[YahooContactDeleted] Can't retrieve contact Yahoo ID");
+ debugLogA("[YahooContactDeleted] Can't retrieve contact Yahoo ID");
}
return 0;
}
@@ -219,7 +219,7 @@ void CYahooProto::OpenURL(const char *url, int autoLogin) {
char tUrl[ 4096 ];
- DebugLog("[YahooOpenURL] url: %s Auto Login: %d", url, autoLogin);
+ debugLogA("[YahooOpenURL] url: %s Auto Login: %d", url, autoLogin);
if (autoLogin && getByte("MailAutoLogin", 0) && m_bLoggedIn && m_id > 0) {
char *y, *t, *u;
@@ -238,7 +238,7 @@ void CYahooProto::OpenURL(const char *url, int autoLogin) mir_snprintf(tUrl, sizeof(tUrl), url);
}
- DebugLog("[YahooOpenURL] url: %s Final URL: %s", url, tUrl);
+ debugLogA("[YahooOpenURL] url: %s Final URL: %s", url, tUrl);
CallService(MS_UTILS_OPENURL, TRUE, (LPARAM)tUrl);
}
@@ -337,7 +337,7 @@ int __cdecl CYahooProto::OnIdleEvent(WPARAM wParam, LPARAM lParam) {
BOOL bIdle = (lParam & IDF_ISIDLE);
- DebugLog("[YAHOO_IDLE_EVENT] Idle: %s", bIdle ?"Yes":"No");
+ debugLogA("[YAHOO_IDLE_EVENT] Idle: %s", bIdle ?"Yes":"No");
if ( lParam & IDF_PRIVACY )
return 0; /* we support Privacy settings */
@@ -345,11 +345,11 @@ int __cdecl CYahooProto::OnIdleEvent(WPARAM wParam, LPARAM lParam) if (m_bLoggedIn) {
/* set me to idle or back */
if (m_iStatus == ID_STATUS_INVISIBLE)
- DebugLog("[YAHOO_IDLE_EVENT] WARNING: INVISIBLE! Don't change my status!");
+ debugLogA("[YAHOO_IDLE_EVENT] WARNING: INVISIBLE! Don't change my status!");
else
set_status(m_iStatus,m_startMsg,(bIdle) ? 2 : (m_iStatus == ID_STATUS_ONLINE) ? 0 : 1);
} else {
- DebugLog("[YAHOO_IDLE_EVENT] WARNING: NOT LOGGED IN???");
+ debugLogA("[YAHOO_IDLE_EVENT] WARNING: NOT LOGGED IN???");
}
return 0;
@@ -499,7 +499,7 @@ int __cdecl CYahooProto::OnPrebuildContactMenu(WPARAM wParam, LPARAM) {
const HANDLE hContact = (HANDLE)wParam;
if (!IsMyContact(hContact)) {
- DebugLog("[OnPrebuildContactMenu] Not a Yahoo Contact!!!");
+ debugLogA("[OnPrebuildContactMenu] Not a Yahoo Contact!!!");
return 0;
}
|