summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-04-07 14:06:25 +0100
committerPeter Powell <petpow@saberuk.com>2018-04-07 14:06:25 +0100
commit9c4cc196c073145d4ad2ae92fb2be2194cf621f4 (patch)
treeec1a1aac6e1778bca3cd558ac02f33d4b1e99044 /src/modules
parent066cc66cc541b612a5293093fe1f070b24c68768 (diff)
Fix disabling the GeoIP extban in m_geoip.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_geoip.cpp2
1 files changed, 1 insertions, 1 deletions
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)