+ if( op == HCMO_CONTAINS ) // A info B mask
+ return *A && !!strstr( B, A ); // we want a real bool
+ else if( op == HCMO_NOTCONTAIN )
+ return !*A || !strstr( B, A );
+ else if( op == HCMO_LESS )
+ return strcmp( A, B ) < 0;
+ else if( op == HCMO_LESSEQUAL )
+ return strcmp( A, B ) <= 0;
+ else if( op == HCMO_EQUAL )
+ return strcmp( A, B ) == 0;
+ else if( op == HCMO_GREATER )
+ return strcmp( A, B ) > 0;
+ else if( op == HCMO_NOTEQUAL )
+ return strcmp( A, B ) != 0;
+ else // HCMO_GREATEREQUAL
+ return strcmp( A, B ) >= 0;
+}
+
+static qboolean _HostCache_TestMask( hostcache_mask_t *mask, hostcache_info_t *info )
+{
+ if( !_hc_testint( info->ping, mask->tests[HCIF_PING], mask->info.ping ) )