From 5c751696d6edb11f5cea797fbadf474bf1e1c2c2 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 10 Aug 2022 22:18:06 +0100 Subject: Rename OnSetUserIP to OnChangeRemoteAddress. --- src/modules/m_connectban.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_connectban.cpp') diff --git a/src/modules/m_connectban.cpp b/src/modules/m_connectban.cpp index 75c480293..cf11e299e 100644 --- a/src/modules/m_connectban.cpp +++ b/src/modules/m_connectban.cpp @@ -92,7 +92,7 @@ public: void Prioritize() override { Module* corexline = ServerInstance->Modules.Find("core_xline"); - ServerInstance->Modules.SetPriority(this, I_OnSetUserIP, PRIORITY_AFTER, corexline); + ServerInstance->Modules.SetPriority(this, I_OnChangeRemoteAddress, PRIORITY_AFTER, corexline); } void ReadConfig(ConfigStatus& status) override @@ -118,7 +118,7 @@ public: // HACK: Lower the connection attempts for the gateway IP address. The user // will be rechecked for connect spamming shortly after when their IP address - // is changed and OnSetUserIP is called. + // is changed and OnChangeRemoteAddress is called. irc::sockets::cidr_mask mask(user->client_sa, GetRange(user)); ConnectMap::iterator iter = connects.find(mask); if (iter != connects.end() && iter->second) @@ -131,7 +131,7 @@ public: ignoreuntil = std::max(ignoreuntil, ServerInstance->Time() + splitwait); } - void OnSetUserIP(LocalUser* u) override + void OnChangeRemoteAddress(LocalUser* u) override { if (IsExempt(u) || ignoreuntil > ServerInstance->Time()) return; -- cgit v1.3.1-10-gc9f91