- const char* c = GeoIP_country_code_by_addr(gi, user->GetIPString());
- if (c)
- {
- std::map<std::string, std::string>::iterator x = GeoBans.find(c);
- if (x != GeoBans.end())
- User::QuitUser(ServerInstance, user, x->second);
- }
- else
- {
- if (banunknown)
- User::QuitUser(ServerInstance, user, "Could not identify your country of origin. Access denied.");
- }