diff options
Diffstat (limited to 'plugins/StopSpamMod')
| -rwxr-xr-x | plugins/StopSpamMod/src/stopspam.cpp | 4 | ||||
| -rwxr-xr-x | plugins/StopSpamMod/src/utilities.cpp | 4 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/StopSpamMod/src/stopspam.cpp b/plugins/StopSpamMod/src/stopspam.cpp index d4823b49af..8eaea7f827 100755 --- a/plugins/StopSpamMod/src/stopspam.cpp +++ b/plugins/StopSpamMod/src/stopspam.cpp @@ -54,7 +54,7 @@ int OnDbEventAdded(WPARAM hContact, LPARAM hDbEvent)  					mir_free(EventText);  				}  				if (gbInvisDisable) { -					if (CallProtoService(dbei.szModule, PS_GETSTATUS, 0, 0) == ID_STATUS_INVISIBLE) +					if (Proto_GetStatus(dbei.szModule) == ID_STATUS_INVISIBLE)  						msg = 0;  					else if (db_get_w(hContact, dbei.szModule, "ApparentMode", 0) == ID_STATUS_OFFLINE)  						msg = 0; //is it useful ? @@ -128,7 +128,7 @@ int OnDbEventFilterAdd(WPARAM w, LPARAM l)  	bool bSendMsg = true;  	if (gbInvisDisable) { -		if (CallProtoService(dbei->szModule, PS_GETSTATUS, 0, 0) == ID_STATUS_INVISIBLE) +		if (Proto_GetStatus(dbei->szModule) == ID_STATUS_INVISIBLE)  			bSendMsg = false;  		else if (db_get_w(hContact, dbei->szModule, "ApparentMode", 0) == ID_STATUS_OFFLINE)  			bSendMsg = false; //is it useful ? diff --git a/plugins/StopSpamMod/src/utilities.cpp b/plugins/StopSpamMod/src/utilities.cpp index e8621d6622..1328b68d78 100755 --- a/plugins/StopSpamMod/src/utilities.cpp +++ b/plugins/StopSpamMod/src/utilities.cpp @@ -248,7 +248,7 @@ void __cdecl CleanProtocolTmpThread(void *param)  	const char *szProto = (const char*)param;
  	while (true) {
 -		UINT status = CallProtoService(szProto, PS_GETSTATUS, 0, 0);
 +		int status = Proto_GetStatus(szProto);
  		if (status > ID_STATUS_OFFLINE)
  			break;
  		Sleep(2000);
 @@ -278,7 +278,7 @@ void __cdecl CleanProtocolExclThread(void *param)  	const char *szProto = (const char*)param;
  	while (true) {
 -		UINT status = CallProtoService(szProto, PS_GETSTATUS, 0, 0);
 +		int status = Proto_GetStatus(szProto);
  		if (status > ID_STATUS_OFFLINE)
  			break;
  		Sleep(2000);
  | 
