summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgs.cpp
diff options
context:
space:
mode:
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;
}