diff options
Diffstat (limited to 'protocols/WebView/src')
-rw-r--r-- | protocols/WebView/src/webview.cpp | 2 | ||||
-rw-r--r-- | protocols/WebView/src/webview_services.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/WebView/src/webview.cpp b/protocols/WebView/src/webview.cpp index 2075151f90..921306247a 100644 --- a/protocols/WebView/src/webview.cpp +++ b/protocols/WebView/src/webview.cpp @@ -165,7 +165,7 @@ void InitialiseGlobals(void) int Doubleclick(WPARAM wParam, LPARAM) { MCONTACT hContact = wParam; - char *szProto = GetContactProto(hContact); + char *szProto = Proto_GetBaseAccountName(hContact); if (mir_strcmp(MODULENAME, szProto)) return 0; diff --git a/protocols/WebView/src/webview_services.cpp b/protocols/WebView/src/webview_services.cpp index 6fe8a258a1..b1ffa1915b 100644 --- a/protocols/WebView/src/webview_services.cpp +++ b/protocols/WebView/src/webview_services.cpp @@ -39,7 +39,7 @@ int DBSettingChanged(WPARAM wParam, LPARAM lParam) if (!strcmp(cws->szModule, "CList")) { int invalidpresent = 0; - char *szProto = GetContactProto(hContact); + char *szProto = Proto_GetBaseAccountName(hContact); if (szProto == nullptr || strcmp(szProto, MODULENAME)) return 0; @@ -111,7 +111,7 @@ int DBSettingChanged(WPARAM wParam, LPARAM lParam) int SiteDeleted(WPARAM wParam, LPARAM) { MCONTACT hContact = wParam; - if (mir_strcmp(GetContactProto(hContact), MODULENAME)) + if (mir_strcmp(Proto_GetBaseAccountName(hContact), MODULENAME)) return 0; ptrW contactName(g_plugin.getWStringA(hContact, PRESERVE_NAME_KEY)); |