summaryrefslogtreecommitdiff
path: root/protocols/WebView/src/webview_services.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-12-04 16:08:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-12-04 16:08:03 +0300
commit3bb16e798cb51d5764aacbefd4edf26f52d8c4f0 (patch)
tree59dbb53fc9496d660ec2ef2846a4eab0f1720b88 /protocols/WebView/src/webview_services.cpp
parent3216d8df5cb355f34c82ed10b7e40bab7525b697 (diff)
GetContactProto: useless duplicate function replaced with standard Proto_GetBaseAccountName
Diffstat (limited to 'protocols/WebView/src/webview_services.cpp')
-rw-r--r--protocols/WebView/src/webview_services.cpp4
1 files changed, 2 insertions, 2 deletions
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));