diff options
Diffstat (limited to 'src/mir_app/src/path.cpp')
-rw-r--r-- | src/mir_app/src/path.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mir_app/src/path.cpp b/src/mir_app/src/path.cpp index 5b14ac1a3b..696f6b0e74 100644 --- a/src/mir_app/src/path.cpp +++ b/src/mir_app/src/path.cpp @@ -34,7 +34,7 @@ static wchar_t tszAvatarRoot[MAX_PATH]; wchar_t* GetContactID(MCONTACT hContact)
{
- char *szProto = GetContactProto(hContact);
+ char *szProto = Proto_GetBaseAccountName(hContact);
if (db_get_b(hContact, szProto, "ChatRoom", 0) == 1)
return db_get_wsa(hContact, szProto, "ChatRoomID");
@@ -229,9 +229,9 @@ XCHAR *GetInternalVariable(const XCHAR *key, size_t keyLength, MCONTACT hContact if (!_xcscmp(theKey, XSTR(key, "nick")))
theValue = GetContactNickX(key, hContact);
else if (!_xcscmp(theKey, XSTR(key, "proto")))
- theValue = mir_a2x(key, GetContactProto(hContact));
+ theValue = mir_a2x(key, Proto_GetBaseAccountName(hContact));
else if (!_xcscmp(theKey, XSTR(key, "accountname"))) {
- PROTOACCOUNT *acc = Proto_GetAccount(GetContactProto(hContact));
+ PROTOACCOUNT *acc = Proto_GetAccount(Proto_GetBaseAccountName(hContact));
if (acc != nullptr)
theValue = mir_a2x(key, _T2A(acc->tszAccountName));
}
|