diff options
| author | 2022-08-10 22:18:06 +0100 | |
|---|---|---|
| committer | 2022-08-10 22:18:06 +0100 | |
| commit | 5c751696d6edb11f5cea797fbadf474bf1e1c2c2 (patch) | |
| tree | 73b657cba3560bbbb8709a7cd80d315e06f741e5 /src/modules/m_connectban.cpp | |
| parent | Rename SetClientIP to ChangeRemoteAddress. (diff) | |
Rename OnSetUserIP to OnChangeRemoteAddress.
Diffstat (limited to 'src/modules/m_connectban.cpp')
| -rw-r--r-- | src/modules/m_connectban.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<time_t>(ignoreuntil, ServerInstance->Time() + splitwait); } - void OnSetUserIP(LocalUser* u) override + void OnChangeRemoteAddress(LocalUser* u) override { if (IsExempt(u) || ignoreuntil > ServerInstance->Time()) return; |
