summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cull_list.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cull_list.cpp b/src/cull_list.cpp
index d931b567c..e9e4c4c70 100644
--- a/src/cull_list.cpp
+++ b/src/cull_list.cpp
@@ -73,12 +73,12 @@ CullList::CullList()
void CullList::AddItem(userrec* user, std::string reason)
{
- if ((user->fd > -1) && (exempt[user->fd] == 0))
- {
- CullItem item(user,reason);
- list.push_back(item);
- exempt[user->fd] = 1;
- }
+ if (exempt.find(user) != exempt.end())
+ {
+ CullItem item(user,reason);
+ list.push_back(item);
+ exempt[user] = 1;
+ }
}
int CullList::Apply()