diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 10:30:25 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 10:30:25 +0000 |
commit | 8ed28d1f98d4d4c653201f0c4273e74dd8a122e6 (patch) | |
tree | 4e43ce34e4c61d090b67adb7158e9eda70105746 /include | |
parent | f9debc231fe8f75dab13cc4332ba63f080967bb2 (diff) |
Added CullList class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2458 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/cull_list.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/include/cull_list.h b/include/cull_list.h new file mode 100644 index 000000000..eb76f3797 --- /dev/null +++ b/include/cull_list.h @@ -0,0 +1,54 @@ +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * Inspire is copyright (C) 2002-2005 ChatSpike-Dev. + * E-mail: + * <brain@chatspike.net> + * <Craig@chatspike.net> + * + * Written by Craig Edwards, Craig McLure, and others. + * This program is free but copyrighted software; see + * the file COPYING for details. + * + * --------------------------------------------------- + */ + +#ifndef __CULLLIST_H__ +#define __CULLLIST_H__ + +// include the common header files + +#include <typeinfo> +#include <iostream> +#include <string> +#include <deque> +#include <sstream> +#include <vector> +#include "users.h" +#include "channels.h" + +class CullItem +{ + private: + userrec* user; + std::string reason; + public: + CullItem(userrec* u, std::string r); + userrec* GetUser(); + std::string GetReason(); +}; + + +class CullList +{ + private: + std::vector<CullItem> list; + char exempt[65535]; + public: + CullList(); + void AddItem(userrec* user, std::string reason); + int Apply(); +}; + +#endif |