- this->user = u;
- this->reason = r;
- /* Seperate oper reason not set, use the user reason */
- if (*o_reason)
- this->oper_reason = o_reason;
- else
- this->oper_reason = r;
-}
-
-CullItem::CullItem(userrec* u, const char* r, const char* o_reason)
-{
- this->user = u;
- this->reason = r;
- /* Seperate oper reason not set, use the user reason */
- if (*o_reason)
- this->oper_reason = o_reason;
- else
- this->oper_reason = r;
-}
-
-CullItem::~CullItem()
-{
-}
-
-userrec* CullItem::GetUser()
-{
- return this->user;
-}
-
-std::string& CullItem::GetReason()
-{
- return this->reason;
-}
-
-std::string& CullItem::GetOperReason()
-{
- return this->oper_reason;
-}
-
-CullList::CullList(InspIRCd* Instance) : ServerInstance(Instance)
-{
- list.clear();
- exempt.clear();
-}
-
-void CullList::AddItem(userrec* user, std::string &reason, const char* o_reason)
-{
- AddItem(user, reason.c_str(), o_reason);
-}
-
-
-void CullList::AddItem(userrec* user, const char* reason, const char* o_reason)
-{
- if (exempt.find(user) == exempt.end())
- {
- CullItem item(user, reason, o_reason);
- list.push_back(item);
- exempt[user] = user;
- }
-}
-
-int CullList::Apply()
-{
- int n = list.size();
- while (list.size())