X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_geoban.cpp;h=483c5a769c675635d4cd0b2066a1cd7c78ffdb22;hb=581d1d8fa0ef62e20409543570390613c78e6f5b;hp=221d6f8001691bbeaef6b48aa25fb6ac030b6643;hpb=14e1d1f844c89e14cac24799c80af47ed6767cf2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_geoban.cpp b/src/modules/m_geoban.cpp index 221d6f800..483c5a769 100644 --- a/src/modules/m_geoban.cpp +++ b/src/modules/m_geoban.cpp @@ -1,7 +1,8 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2019 Peter Powell + * Copyright (C) 2020 Matt Schatz + * Copyright (C) 2019 Sadie Powell * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -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());