summaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-13 15:27:40 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-13 15:27:40 +0200
commit467b276d9d0407ec412262525c43c28d47fdae2f (patch)
treeaaaa348fa1c2ea635b9e3b3ae29d9ef57d5e0dae /src/usermanager.cpp
parentcaa0c27a5a485151a0de21e700680c1e46ab85b4 (diff)
Change allocation of InspIRCd::BanCache to be physically part of the object containing it
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp
index 665149e48..37f64b9d2 100644
--- a/src/usermanager.cpp
+++ b/src/usermanager.cpp
@@ -104,7 +104,8 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs
*/
New->exempt = (ServerInstance->XLines->MatchesLine("E",New) != NULL);
- if (BanCacheHit *b = ServerInstance->BanCache->GetHit(New->GetIPString()))
+ BanCacheHit* const b = ServerInstance->BanCache.GetHit(New->GetIPString());
+ if (b)
{
if (!b->Type.empty() && !New->exempt)
{