@@ -13,6 +13,7 @@ struct SMasterServerDefinition
1313 bool bAcceptsPush;
1414 bool bDoReminders;
1515 bool bHideProblems;
16+ bool bHideSuccess;
1617 uint uiReminderIntervalMins;
1718 SString strDesc;
1819 SString strURL;
@@ -125,7 +126,7 @@ class CMasterServer : public CRefCountable
125126 if ( m_Stage < ANNOUNCE_STAGE_REMINDER )
126127 {
127128 m_Stage = ANNOUNCE_STAGE_REMINDER;
128- if ( !m_Definition.bHideProblems || iError == 200 )
129+ if ( !m_Definition.bHideSuccess )
129130 {
130131 CArgMap argMap;
131132 argMap.SetFromString ( data );
@@ -223,10 +224,10 @@ class CMasterServerAnnouncer
223224 void InitServerList ( void )
224225 {
225226 assert ( m_MasterServerList.empty () );
226- AddServer ( true , true , false , 60 * 24 , " Querying MTA master server..." , QUERY_URL_MTA_MASTER_SERVER );
227+ AddServer ( true , true , false , false , 60 * 24 , " Querying MTA master server..." , QUERY_URL_MTA_MASTER_SERVER );
227228 }
228229
229- void AddServer ( bool bAcceptsPush, bool bDoReminders, bool bHideProblems, uint uiReminderIntervalMins, const SString& strDesc, const SString& strInUrl )
230+ void AddServer ( bool bAcceptsPush, bool bDoReminders, bool bHideProblems, bool bHideSuccess, uint uiReminderIntervalMins, const SString& strDesc, const SString& strInUrl )
230231 {
231232 // Check if server is already present
232233 for ( auto pMasterServer : m_MasterServerList )
@@ -255,7 +256,7 @@ class CMasterServerAnnouncer
255256 strUrl = strUrl.Replace ( " %EXTRA%" , strExtra );
256257 strUrl = strUrl.Replace ( " %IP%" , strServerIP );
257258
258- SMasterServerDefinition masterServerDefinition = { bAcceptsPush, bDoReminders, bHideProblems, uiReminderIntervalMins, strDesc, strUrl };
259+ SMasterServerDefinition masterServerDefinition = { bAcceptsPush, bDoReminders, bHideProblems, bHideSuccess, uiReminderIntervalMins, strDesc, strUrl };
259260 m_MasterServerList.push_back ( new CMasterServer ( masterServerDefinition ) );
260261 }
261262
0 commit comments