27 std::map<std::string, WeakPtr< ClientControlBlock > >
Clients;
29 std::map<std::string, WeakPtr< ClientControlBlock > >
Operators;
55 Clients.insert(std::make_pair(creatorNickname, creator));
56 Operators.insert(std::make_pair(creatorNickname, creator));
70 std::map<std::string, WeakPtr< ClientControlBlock > >::iterator it =
Clients.find(nickname);
75 else if (it->second.Expired())
81 return it->second.Lock();
#define ANSI_BGRN
Definition AnsiColorDefines.hpp:20
#define ANSI_RESET
Definition AnsiColorDefines.hpp:5
#define FORCEINLINE
Definition AttributeDefines.hpp:55
Definition ChannelControlBlock.hpp:17
bool bPrivate
Channel has a password.
Definition ChannelControlBlock.hpp:40
std::map< std::string, WeakPtr< ClientControlBlock > > InvitedClients
Definition ChannelControlBlock.hpp:42
std::string Topic
""(empty string) means no topic
Definition ChannelControlBlock.hpp:22
bool bInviteOnly
Definition ChannelControlBlock.hpp:34
std::string Password
Check bPrivate before checking this.
Definition ChannelControlBlock.hpp:25
std::map< std::string, WeakPtr< ClientControlBlock > > Clients
Definition ChannelControlBlock.hpp:27
SharedPtr< ClientControlBlock > FindClient(const std::string &nickname)
Definition ChannelControlBlock.hpp:68
ChannelControlBlock(const std::string &name, SharedPtr< ClientControlBlock > creator, std::string creatorNickname)
Definition ChannelControlBlock.hpp:44
bool bTopicProtected
Topic settable by channel operator only flag.
Definition ChannelControlBlock.hpp:37
bool IsOperator(const std::string &nickname)
Definition ChannelControlBlock.hpp:84
size_t MaxClients
'0' means no limit
Definition ChannelControlBlock.hpp:32
std::map< std::string, WeakPtr< ClientControlBlock > > Operators
Definition ChannelControlBlock.hpp:29
~ChannelControlBlock()
Definition ChannelControlBlock.hpp:62
std::string Name
Definition ChannelControlBlock.hpp:19
Control block for management of a client connection and its information.
Definition ClientControlBlock.hpp:25
Base class for memory pooling with new/delete operator overloading.
Definition FlexibleMemoryPoolingBase.hpp:39
Shared pointer custom implementation for C++98 standard.
Definition SharedPtr.hpp:164
Definition ControlBlock.hpp:7
Definition ChannelControlBlock.hpp:12