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"
22 #include "inspircd_util.h"
25 #include <sys/errno.h>
29 #include <ext/hash_map>
46 #include "inspstring.h"
47 #include "helperfuncs.h"
50 #include "cull_list.h"
52 CullItem::CullItem(userrec* u, std::string r)
58 userrec* CullItem::GetUser()
63 std::string CullItem::GetReason()
71 memset(exempt,0,65535);
74 void CullList::AddItem(userrec* user, std::string reason)
76 if (exempt.find(user) != exempt.end())
78 CullItem item(user,reason);
89 std::vector<CullItem>::iterator a = list.begin();
90 userrec* u = a->GetUser();
91 std::string reason = a->GetReason();
92 kill_link(u,reason.c_str());
93 list.erase(list.begin());