CullResult LocalUser::cull() { ServerInstance->Users->local_users.erase(this); ClearInvites(); eh.cull(); return User::cull(); }
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(); }
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); }
CullResult LocalUser::cull() { ClearInvites(); eh.cull(); return User::cull(); }