From 3d56d49cf1696964a6349be6c5820fc60266ef26 Mon Sep 17 00:00:00 2001 From: Matt Schatz Date: Tue, 31 Mar 2020 02:09:12 -0600 Subject: [PATCH] Don't send a geolocation whois line for uline clients. --- src/modules/m_geoban.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/m_geoban.cpp b/src/modules/m_geoban.cpp index 8103d39c3..4d6967d7c 100644 --- a/src/modules/m_geoban.cpp +++ b/src/modules/m_geoban.cpp @@ -67,6 +67,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()); -- 2.39.5