summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cull_list.cpp4
1 files changed, 1 insertions, 3 deletions
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;
}
}