Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Label servers that can cause data loss as dangerous
[xestiaab/.git] / source / common / svrdlist.cpp
similarity index 60%
rename from source/common/svrblist.cpp
rename to source/common/svrdlist.cpp
index 9894b21..997c9c1 100644 (file)
@@ -1,4 +1,4 @@
-// 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
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy