X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2Fcommon%2Fsvrdlist.cpp;fp=source%2Fcommon%2Fsvrblist.cpp;h=997c9c17f66348ca4527fc4539fade32809041d8;hp=9894b21e9ce5f41b7f4588c7ba3e6358a2db7689;hb=ce32889b3a42670bfbc3bbb87a689ae79e889e68;hpb=ea5f276a69989d4e5797b49083322bac2c9a820c diff --git a/source/common/svrblist.cpp b/source/common/svrdlist.cpp similarity index 60% rename from source/common/svrblist.cpp rename to source/common/svrdlist.cpp index 9894b21..997c9c1 100644 --- a/source/common/svrblist.cpp +++ b/source/common/svrdlist.cpp @@ -1,4 +1,4 @@ -// svrblist.cpp - Server Blacklist subroutines. +// svrdlist.cpp - Server Dangerous List subroutines. // // (c) 2012-2015 Xestia Software Development. // @@ -19,24 +19,24 @@ #include #include -bool CheckBlacklist(wxString ServerAddress){ +bool CheckDangerousList(wxString serverAddress){ - // Check if the server address is on the blacklist. + // Check if the server address is on the dangerous list. - wxString ServerBlacklist = "google.com"; - wxString BListHostname; + wxString dangerousServerList = "google.com"; + wxString dangerousListHostname; - wxStringTokenizer ServerBlacklistTkz(ServerBlacklist, wxT("|")); + wxStringTokenizer dangerousServerTokens(dangerousServerList, wxT("|")); - while(ServerBlacklistTkz.HasMoreTokens()){ + while(dangerousServerTokens.HasMoreTokens()){ - BListHostname = ServerBlacklistTkz.GetNextToken(); - if (BListHostname == ServerAddress){ - return TRUE; + dangerousListHostname = dangerousServerTokens.GetNextToken(); + if (dangerousListHostname == serverAddress){ + return true; } } - return FALSE; + return false; } \ No newline at end of file