Skip to content

Commit

Permalink
Revert "Add annoying warning box on WinXP"
Browse files Browse the repository at this point in the history
This reverts commit 206ef63.
  • Loading branch information
jushar committed Jul 7, 2016
1 parent 84a3bfe commit 280bcaf
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions MTA10/mods/shared_logic/luadefs/CLuaBrowserDefs.cpp
Expand Up @@ -61,17 +61,6 @@ void CLuaBrowserDefs::LoadFunctions ( void )
for ( const auto& pair : functions )
{
CLuaCFunctions::AddFunction( pair.first, [](lua_State* luaVM) -> int {
// Show message box eventually
static bool messageBoxShown = false;
if ( !messageBoxShown )
{
g_pCore->ShowMessageBox(_("Unsupported OS"),
_("This server uses browser functions that are not supported on your PC. If you click OK, you are aware that your PC is vulnerable to malware and will most likely join a botnet soon"),
MB_BUTTON_OK | MB_ICON_WARNING);

messageBoxShown = true;
}

g_pCore->DebugPrintfColor ( "Called browser function on unsupported, vulnerable operating system. Please upgrade your OS as soon as possible", 255, 0, 0 );
lua_pushboolean ( luaVM, false );
return 1;
Expand Down

0 comments on commit 280bcaf

Please sign in to comment.