|
|||
|
|||
|
#include <cull_list.h>
Inheritance diagram for CullList:


Public Member Functions | |
| CullList (InspIRCd *Instance) | |
| Constructor. | |
| void | AddItem (User *user) |
| Adds a user to the cull list for later removal via QUIT. | |
| void | MakeSilent (User *user) |
| int | Apply () |
| Applies the cull list, quitting all the users on the list with their quit reasons all at once. | |
Private Attributes | |
| InspIRCd * | ServerInstance |
| Creator of this CullList. | |
| std::vector< User * > | list |
| Holds a list of users being quit. | |
to quitting them all at once. This is faster than quitting them within the loop, as the loops become tighter with little or no comparisons within them. The CullList class operates by allowing the programmer to push users onto the list, each with a seperate quit reason, and then, once the list is complete, call a method to flush the list, quitting all the users upon it. A CullList may hold local or remote users, but it may only hold each user once. If you attempt to add the same user twice, then the second attempt will be ignored.
NOTE: Don't use this outside core, use the QuitUser method like everyone else!
Definition at line 32 of file cull_list.h.
|
|
Constructor.
Definition at line 19 of file cull_list.cpp. References list. |
|
|
Adds a user to the cull list for later removal via QUIT.
Definition at line 24 of file cull_list.cpp. References list. Referenced by UserManager::QuitUser(). |
|
|
|
Definition at line 29 of file cull_list.cpp. References User::quietquit. Referenced by TreeServer::QuitUsers(). |
|
|
Holds a list of users being quit. See the information for CullItem for more information. Definition at line 43 of file cull_list.h. Referenced by AddItem(), Apply(), and CullList(). |
|
|
Creator of this CullList.
Definition at line 37 of file cull_list.h. Referenced by Apply(). |