diff options
author | George Hazan <george.hazan@gmail.com> | 2014-06-22 19:59:42 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-06-22 19:59:42 +0000 |
commit | 4cdf29bbd778f0ffa1ab73b806c4e1dfbeb59bc9 (patch) | |
tree | a745280c16aafa6e45190479206781f05ffbac9e | |
parent | d04315eb83646e0e666cabc5ea76fd5cda14bdbf (diff) |
fix for setting sub's status & nick
git-svn-id: http://svn.miranda-ng.org/main/trunk@9558 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | src/modules/metacontacts/meta_services.cpp | 2 | ||||
-rw-r--r-- | src/modules/metacontacts/meta_utils.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/metacontacts/meta_services.cpp b/src/modules/metacontacts/meta_services.cpp index e1242f8b87..6f7befc018 100644 --- a/src/modules/metacontacts/meta_services.cpp +++ b/src/modules/metacontacts/meta_services.cpp @@ -814,7 +814,7 @@ int Meta_CallMostOnline(WPARAM hContact, LPARAM lParam) if (cc == NULL)
return 0;
- Meta_CopyContactNick(cc, Meta_GetMostOnline(cc));
+ Meta_CopyContactNick(cc, db_mc_getSrmmSub(cc->contactID));
Meta_FixStatus(cc);
return 0;
}
diff --git a/src/modules/metacontacts/meta_utils.cpp b/src/modules/metacontacts/meta_utils.cpp index b9119a4d4e..b917fce527 100644 --- a/src/modules/metacontacts/meta_utils.cpp +++ b/src/modules/metacontacts/meta_utils.cpp @@ -513,7 +513,7 @@ void Meta_FixStatus(DBCachedContact *ccMeta) {
WORD status = ID_STATUS_OFFLINE;
- MCONTACT most_online = Meta_GetMostOnlineSupporting(ccMeta, PFLAGNUM_1, 0);
+ MCONTACT most_online = db_mc_getSrmmSub(ccMeta->contactID);
if (most_online) {
char *szProto = GetContactProto(most_online);
if (szProto)
|