diff options
Diffstat (limited to 'src/nickcore.cpp')
-rw-r--r-- | src/nickcore.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp index 5fdf9c2dd..a33382f06 100644 --- a/src/nickcore.cpp +++ b/src/nickcore.cpp @@ -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(); |