-// svrblist.cpp - Server Blacklist subroutines.
+// svrdlist.cpp - Server Dangerous List subroutines.
//
// (c) 2012-2015 Xestia Software Development.
//
#include <wx/wx.h>
#include <wx/tokenzr.h>
-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