76 const std::string& title,
77 const std::string& description,
78 const std::string& author,
79 const std::string& ip,
80 const std::string& email)
const;
blacklist(const blacklist &)=delete
bool ip_matches(const std::string &ip, const std::string &ip_mask) const
void read(const config &cfg)
Initializes the blacklist from WML.
void parse_str_to_globlist(const std::string &str, globlist &glist)
std::vector< std::string > globlist
bool is_in_globlist(const std::string &str, const globlist &glist) const
blacklist & operator=(const blacklist &)=delete
bool is_in_ip_masklist(const std::string &ip, const globlist &mlist) const
void write(config &cfg) const
Writes the blacklist to a WML node.
bool is_blacklisted(const std::string &name, const std::string &title, const std::string &description, const std::string &author, const std::string &ip, const std::string &email) const
Whether an add-on described by these fields is blacklisted.
A config object defines a single node in a WML file, with access to child nodes.
Definitions for the interface to Wesnoth Markup Language (WML).
std::pair< unsigned int, unsigned int > ip_mask