diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-24 20:01:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-24 20:01:15 +0000 |
commit | 61cfefc94022c3fa8bfe1a2900bd02a3602796bf (patch) | |
tree | 2a0c8c46a836f2f8da752c1c3872bf46192820ce /src/modules/metacontacts/meta_api.cpp | |
parent | cbd1af7c1da031b90f25f840ef560873e2b49f08 (diff) |
experimental: a default sub would be used if it's not offline
git-svn-id: http://svn.miranda-ng.org/main/trunk@8733 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/metacontacts/meta_api.cpp')
-rw-r--r-- | src/modules/metacontacts/meta_api.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/metacontacts/meta_api.cpp b/src/modules/metacontacts/meta_api.cpp index cfca0ed968..f1b0926ad1 100644 --- a/src/modules/metacontacts/meta_api.cpp +++ b/src/modules/metacontacts/meta_api.cpp @@ -32,10 +32,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. static INT_PTR MetaAPI_GetMostOnline(WPARAM hMetaContact, LPARAM)
{
DBCachedContact *cc = CheckMeta(hMetaContact);
- if (cc == NULL)
- return NULL;
-
- return Meta_GetMostOnline(cc);
+ return (cc == NULL) ? NULL : Meta_GetMostOnline(cc);
}
// wParam=(HANDLE)hContact
|