summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-04-21 12:04:43 +0100
committerPeter Powell <petpow@saberuk.com>2018-04-22 13:02:19 +0100
commit35b70631f0532a5828b04a8e0c02092a285f331a (patch)
tree9e54fba45e659f23fb3b94341debfc0b23bc63af /src/modules/extra
parent46e71e2f509eb38166fafcc69931117f0f9b7798 (diff)
parentdd3b11b3aa4eb6cb0b6aff4b245a9b075759737d (diff)
Merge tag 'v2.0.26' into master.
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_geoip.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/extra/m_geoip.cpp b/src/modules/extra/m_geoip.cpp
index 7083be6ac..0d7c2eb70 100644
--- a/src/modules/extra/m_geoip.cpp
+++ b/src/modules/extra/m_geoip.cpp
@@ -146,6 +146,13 @@ class ModuleGeoIP : public Module, public Stats::EventListener, public Whois::Ev
return MOD_RES_DENY;
}
+ void OnSetUserIP(LocalUser* user) CXX11_OVERRIDE
+ {
+ // If user has sent NICK/USER, re-set the ExtItem as this is likely CGI:IRC changing the IP
+ if (user->registered == REG_NICKUSER)
+ SetExt(user);
+ }
+
void OnWhois(Whois::Context& whois) CXX11_OVERRIDE
{
// If the extban is disabled we don't expose users location.