summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-23 15:43:46 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-23 15:43:46 +0000
commit59469a44731feba111a76f0154c42bb3fc5bb04e (patch)
tree2abca57dffa8bbf55be2b43d7d8ed669d542e529 /plugins/Scriver/src/msgs.cpp
parent480aab2b3ffb0b439e160a8c716ef0d982af1acf (diff)
removing direct access to metas: Scriver
git-svn-id: http://svn.miranda-ng.org/main/trunk@9925 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/msgs.cpp')
-rw-r--r--plugins/Scriver/src/msgs.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp
index ec47078267..0ebb48f1f2 100644
--- a/plugins/Scriver/src/msgs.cpp
+++ b/plugins/Scriver/src/msgs.cpp
@@ -62,11 +62,11 @@ static int SRMMStatusToPf2(int status)
int IsAutoPopup(MCONTACT hContact) {
if (g_dat.flags & SMF_AUTOPOPUP) {
char *szProto = GetContactProto(hContact);
- if (strcmp(szProto, META_PROTO) == 0) {
- hContact = db_mc_getMostOnline(hContact);
- if (hContact != NULL)
- szProto = GetContactProto(hContact);
- }
+
+ hContact = db_mc_getSrmmSub(hContact);
+ if (hContact != NULL)
+ szProto = GetContactProto(hContact);
+
if (szProto && (g_dat.openFlags & SRMMStatusToPf2(CallProtoService(szProto, PS_GETSTATUS, 0, 0))))
return 1;
}