1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
19 #include "inspircd_config.h"
21 #include "inspircd_io.h"
24 #include <sys/errno.h>
28 #include <ext/hash_map>
45 #include "inspstring.h"
46 #include "helperfuncs.h"
49 #include "cull_list.h"
51 CullItem::CullItem(userrec* u, std::string r)
57 userrec* CullItem::GetUser()
62 std::string CullItem::GetReason()
73 void CullList::AddItem(userrec* user, std::string reason)
75 if (exempt.find(user) == exempt.end())
77 CullItem item(user,reason);
88 std::vector<CullItem>::iterator a = list.begin();
89 userrec* u = a->GetUser();
90 std::string reason = a->GetReason();
91 kill_link(u,reason.c_str());
92 list.erase(list.begin());