2
2
* | Inspire Internet Relay Chat Daemon |
3
3
* +------------------------------------+
5
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
5
* InspIRCd: (C) 2002-2008 InspIRCd Development Team
6
6
* See: http://www.inspircd.org/wiki/index.php/Credits
8
8
* This program is free but copyrighted software; see
27
/** The CullItem class holds a user and their quitmessage,
28
* and is used internally by the CullList class to compile
29
* a list of users which are to be culled when a long
30
* operation (such as a netsplit) has completed.
32
class CoreExport CullItem : public classbase
35
/** Holds a pointer to the user,
36
* must be valid and can be a local or remote user.
39
/** Holds the quit reason to use for this user.
42
/** Holds the quit reason opers see, if different from users
44
std::string oper_reason;
45
/** Silent items dont generate an snotice.
50
* Initializes the CullItem with a user pointer
51
* and their quit reason
52
* @param u The user to add
53
* @param r The quit reason of the added user
54
* @param ro The quit reason to show to opers only
56
CullItem(userrec* u, std::string &r, const char* ro = "");
58
* Initializes the CullItem with a user pointer
59
* and their quit reason
60
* @param u The user to add
61
* @param r The quit reason of the added user
62
* @param ro The quit reason to show to opers only
64
CullItem(userrec* u, const char* r, const char* ro = "");
66
/** Make the quit silent a module is dealing with
67
* displaying this users quit, so we shouldn't
72
/** Returns true if the quit for this user has been set
81
/** Returns a pointer to the user
84
/** Returns the user's quit reason
86
std::string& GetReason();
87
/** Returns oper reason
89
std::string& GetOperReason();
92
27
/** The CullList class can be used by modules, and is used
93
28
* by the core, to compile large lists of users in preperation
94
29
* to quitting them all at once. This is faster than quitting
110
45
InspIRCd* ServerInstance;
112
/** Holds a list of users already added for quick lookup
114
std::map<userrec*, userrec*> exempt;
116
47
/** Holds a list of users being quit.
117
48
* See the information for CullItem for
118
49
* more information.
120
std::vector<CullItem> list;
51
std::vector<userrec *> list;