summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirOTR/src/utils.cpp')
-rw-r--r--plugins/MirOTR/src/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirOTR/src/utils.cpp b/plugins/MirOTR/src/utils.cpp
index 1d0e68f4f1..fa02d254cd 100644
--- a/plugins/MirOTR/src/utils.cpp
+++ b/plugins/MirOTR/src/utils.cpp
@@ -10,7 +10,7 @@ void lib_cs_lock()
MCONTACT find_contact(const char* userid, const char* protocol)
{
for (auto &hContact : Contacts()) {
- const char *proto = GetContactProto(hContact);
+ const char *proto = Proto_GetBaseAccountName(hContact);
if (proto && mir_strcmp(proto, protocol) == 0) {
ptrA name(contact_get_id(hContact));
if (name && mir_strcmp(name, userid) == 0)
@@ -28,7 +28,7 @@ MCONTACT find_contact(const char* userid, const char* protocol)
* filled in by the application, and set *addedp to 1. */
ConnContext* otrl_context_find_miranda(OtrlUserState us, MCONTACT hContact)
{
- const char *proto = GetContactProto(hContact);
+ const char *proto = Proto_GetBaseAccountName(hContact);
return otrl_context_find(us, ptrA(contact_get_id(hContact)), proto, proto, OTRL_INSTAG_BEST, 0, nullptr, nullptr, nullptr);
}