From 9c4cc196c073145d4ad2ae92fb2be2194cf621f4 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 7 Apr 2018 14:06:25 +0100 Subject: Fix disabling the GeoIP extban in m_geoip. --- src/modules/extra/m_geoip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/extra/m_geoip.cpp b/src/modules/extra/m_geoip.cpp index c03800f43..4b11e3df0 100644 --- a/src/modules/extra/m_geoip.cpp +++ b/src/modules/extra/m_geoip.cpp @@ -108,7 +108,7 @@ class ModuleGeoIP : public Module, public Whois::EventListener ModResult OnCheckBan(User *user, Channel *c, const std::string& mask) { - if ((mask.length() > 2) && (mask[0] == 'G') && (mask[1] == ':')) + if (extban && (mask.length() > 2) && (mask[0] == 'G') && (mask[1] == ':')) { std::string* cc = ext.get(user); if (!cc) -- cgit v1.2.3