X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_geoban.cpp;h=483c5a769c675635d4cd0b2066a1cd7c78ffdb22;hb=b3449b8763139602efc568f46631299476d5979f;hp=8103d39c33eccb4812ee35cfe84479fad2626e3d;hpb=56375392ba94f2552bbeeeab4fd39e1e50295525;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_geoban.cpp b/src/modules/m_geoban.cpp index 8103d39c3..483c5a769 100644 --- a/src/modules/m_geoban.cpp +++ b/src/modules/m_geoban.cpp @@ -1,6 +1,7 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2020 Matt Schatz * Copyright (C) 2019 Sadie Powell * * This file is part of InspIRCd. InspIRCd is free software: you can @@ -43,7 +44,7 @@ class ModuleGeoBan Version GetVersion() CXX11_OVERRIDE { - return Version("Provides a way to ban users by country", VF_OPTCOMMON|VF_VENDOR); + return Version("Adds extended ban G which matches against two letter country codes.", VF_OPTCOMMON|VF_VENDOR); } void On005Numeric(std::map& tokens) CXX11_OVERRIDE @@ -67,6 +68,9 @@ class ModuleGeoBan void OnWhois(Whois::Context& whois) CXX11_OVERRIDE { + if (whois.GetTarget()->server->IsULine()) + return; + Geolocation::Location* location = geoapi ? geoapi->GetLocation(whois.GetTarget()) : NULL; if (location) whois.SendLine(RPL_WHOISCOUNTRY, location->GetCode(), "is connecting from " + location->GetName());