summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Schatz <genius3000@g3k.solutions>2020-03-31 02:09:12 -0600
committerMatt Schatz <genius3000@g3k.solutions>2020-04-04 19:18:59 -0600
commit3d56d49cf1696964a6349be6c5820fc60266ef26 (patch)
tree89bdadff2a100f7afc23d71fa8fd1bc8dce27abe /src
parentd6133886f5a84000fcb2df6e993d252ecb55b72d (diff)
Don't send a geolocation whois line for uline clients.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_geoban.cpp3
1 files changed, 3 insertions, 0 deletions
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());