summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/WhenWasIt/src/utils.cpp')
-rw-r--r--plugins/WhenWasIt/src/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/WhenWasIt/src/utils.cpp b/plugins/WhenWasIt/src/utils.cpp
index 4b6240ae69..9a5cd03e16 100644
--- a/plugins/WhenWasIt/src/utils.cpp
+++ b/plugins/WhenWasIt/src/utils.cpp
@@ -152,7 +152,7 @@ wchar_t* GetContactID(MCONTACT hContact, char *szProto)
MCONTACT GetContactFromID(wchar_t *szID, char *szProto)
{
for (auto &hContact : Contacts()) {
- char *m_szProto = GetContactProto(hContact);
+ char *m_szProto = Proto_GetBaseAccountName(hContact);
wchar_t *szHandle = GetContactID(hContact, szProto);
if (szHandle) {
bool found = (!mir_wstrcmpi(szHandle, szID) && !_stricmp(szProto, m_szProto));