summaryrefslogtreecommitdiff
path: root/src/nickcore.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-04-22 03:16:11 -0400
committerAdam <Adam@anope.org>2011-05-16 04:06:17 -0400
commitc8c23158a4ff74822d6c7d201dc53d879e3d91e8 (patch)
tree4bc9ae029691d5e7c03ebc1481683a010b733844 /src/nickcore.cpp
parent1782ce260c5bc214ec0b2e39257ab1371b68ae9c (diff)
Moved the core pseudo clients out into their own modules
Diffstat (limited to 'src/nickcore.cpp')
-rw-r--r--src/nickcore.cpp20
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();