From e9001885478b51dad173ddc2f93170db2591a8be Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 28 Feb 2006 12:09:31 +0000 Subject: And the obligotary typo fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3381 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cull_list.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/cull_list.cpp b/src/cull_list.cpp index a6dd915a2..7c4afa16c 100644 --- a/src/cull_list.cpp +++ b/src/cull_list.cpp @@ -56,8 +56,7 @@ bool CullList::IsValid(userrec* user) { for (user_hash::iterator u = clientlist.begin(); u != clientlist.end(); u++) { - userrec* u2 = (userrec*)*u; - if (user == u2) + if (user == u->second) return true; } return false; @@ -91,7 +90,6 @@ void CullList::AddItem(userrec* user, std::string reason) { CullItem item(user,reason); list.push_back(item); - names.push_back(user->nick); exempt[user] = 1; } } -- cgit v1.2.3