-void CullList::AddItem(userrec* user, std::string &reason)
-{
- if (exempt.find(user) == exempt.end())
- {
- CullItem item(user,reason);
- list.push_back(item);
- exempt[user] = user->signon;
- }
-}
-
-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 = list.size();
- while (list.size())
- {
- std::vector<CullItem>::iterator a = list.begin();
-
- userrec::QuitUser(ServerInstance, a->GetUser(), a->GetReason().c_str());
- list.erase(list.begin());
- }
- return n;
-}