1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 10:06:37 +02:00

Moved the core pseudo clients out into their own modules

This commit is contained in:
Adam
2011-04-22 03:16:11 -04:00
parent 1782ce260c
commit c8c23158a4
226 changed files with 5187 additions and 4891 deletions
-20
View File
@@ -31,29 +31,9 @@ NickCore::~NickCore()
{
FOREACH_MOD(I_OnDelCore, OnDelCore(this));
/* Clean up this nick core from any users online using it
* (ones that /nick but remain unidentified)
*/
for (std::list<User *>::iterator it = this->Users.begin(); it != this->Users.end();)
{
User *user = *it++;
ircdproto->SendAccountLogout(user, user->Account());
user->RemoveMode(NickServ, UMODE_REGISTERED);
ircdproto->SendUnregisteredNick(user);
user->Logout();
FOREACH_MOD(I_OnNickLogout, OnNickLogout(user));
}
this->Users.clear();
/* (Hopefully complete) cleanup */
cs_remove_nick(this);
/* Remove the core from the list */
NickCoreList.erase(this->display);
/* Log .. */
Log(NickServ, "nick") << "deleting nickname group " << this->display;
/* Clear access before deleting display name, we want to be able to use the display name in the clear access event */
this->ClearAccess();