diff options
Diffstat (limited to 'plugins/SendScreenshotPlus/src')
-rw-r--r-- | plugins/SendScreenshotPlus/src/CSend.cpp | 2 | ||||
-rw-r--r-- | plugins/SendScreenshotPlus/src/Main.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSend.cpp b/plugins/SendScreenshotPlus/src/CSend.cpp index 9252ba7649..051cda0c9b 100644 --- a/plugins/SendScreenshotPlus/src/CSend.cpp +++ b/plugins/SendScreenshotPlus/src/CSend.cpp @@ -65,7 +65,7 @@ void CSend::SetContact(MCONTACT hContact) { m_hContact = hContact; if (hContact) { - m_pszProto = GetContactProto(hContact); + m_pszProto = Proto_GetBaseAccountName(hContact); m_ChatRoom = db_get_b(hContact, m_pszProto, "ChatRoom", 0); } } diff --git a/plugins/SendScreenshotPlus/src/Main.cpp b/plugins/SendScreenshotPlus/src/Main.cpp index 72552888dd..4676b7e61e 100644 --- a/plugins/SendScreenshotPlus/src/Main.cpp +++ b/plugins/SendScreenshotPlus/src/Main.cpp @@ -139,7 +139,7 @@ INT_PTR service_SendDesktop(WPARAM wParam, LPARAM) return -1; } MCONTACT hContact = (MCONTACT)wParam; - char *pszProto = GetContactProto(hContact); + char *pszProto = Proto_GetBaseAccountName(hContact); bool bChatRoom = db_get_b(hContact, pszProto, "ChatRoom", 0) != 0; frmMain->m_opt_chkTimed = false; frmMain->m_opt_tabCapture = 1; @@ -237,7 +237,7 @@ int hook_SystemPreShutdown(WPARAM, LPARAM) int hook_PrebuildContactMenu(WPARAM hContact, LPARAM) { - INT_PTR flags = CallProtoService(GetContactProto(hContact), PS_GETCAPS, PFLAGNUM_1, 0); + INT_PTR flags = CallProtoService(Proto_GetBaseAccountName(hContact), PS_GETCAPS, PFLAGNUM_1, 0); bool bEnabled = (flags != CALLSERVICE_NOTFOUND) && (flags & PF1_FILE) != 0; Menu_ShowItem(g_hMenu1, bEnabled); Menu_ShowItem(g_hMenu2, bEnabled); |