Beispiel #1
0
CullResult LocalUser::cull()
{
	ServerInstance->Users->local_users.erase(this);
	ClearInvites();
	eh.cull();
	return User::cull();
}
Beispiel #2
0
CullResult LocalUser::cull()
{
	// The iterator is initialized to local_users.end() in the constructor. It is
	// overwritten in UserManager::AddUser() with the real iterator so this check
	// is only a precaution currently.
	if (localuseriter != ServerInstance->Users->local_users.end())
		ServerInstance->Users->local_users.erase(localuseriter);

	ClearInvites();
	eh.cull();
	return User::cull();
}
Beispiel #3
0
void Channel::CheckDestroy()
{
	if (!userlist.empty())
		return;

	ModResult res;
	FIRST_MOD_RESULT(OnChannelPreDelete, res, (this));
	if (res == MOD_RES_DENY)
		return;

	chan_hash::iterator iter = ServerInstance->chanlist->find(this->name);
	/* kill the record */
	if (iter != ServerInstance->chanlist->end())
	{
		FOREACH_MOD(OnChannelDelete, (this));
		ServerInstance->chanlist->erase(iter);
	}

	ClearInvites();
	ServerInstance->GlobalCulls.AddItem(this);
}
Beispiel #4
0
CullResult LocalUser::cull()
{
	ClearInvites();
	eh.cull();
	return User::cull();
}