this->reason = r;
}
+CullItem::CullItem(userrec* u, const char* r)
+{
+ this->user = u;
+ this->reason = r;
+}
+
+CullItem::~CullItem()
+{
+}
+
userrec* CullItem::GetUser()
{
return this->user;
}
-std::string CullItem::GetReason()
+std::string& CullItem::GetReason()
{
return this->reason;
}
}
}
+void CullList::AddItem(userrec* user, const char* reason)
+{
+ if (exempt.find(user) == exempt.end())
+ {
+ CullItem item(user,reason);
+ list.push_back(item);
+ exempt[user] = user->signon;
+ }
+}
+
int CullList::Apply()
{
int n = 0;