From 467b276d9d0407ec412262525c43c28d47fdae2f Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 13 Jun 2014 15:27:40 +0200 Subject: Change allocation of InspIRCd::BanCache to be physically part of the object containing it --- src/usermanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/usermanager.cpp') 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) { -- cgit v1.3.1-10-gc9f91