diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-04 23:49:27 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-04 23:49:27 +0000 |
commit | 308070e01971b0cfaf77de20011f48ce4d6b5a1c (patch) | |
tree | 2bdfd84e35cf79eb20dc2a79ddd233789ca84fdf /src/nickalias.cpp | |
parent | 3d4cf39940144be19645a3a7cdecf95213b96f26 (diff) |
We now store a list of users using a NickCore in the NickCore, this prevents having to loop every user all the time to find them
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2780 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/nickalias.cpp')
-rw-r--r-- | src/nickalias.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nickalias.cpp b/src/nickalias.cpp index 5ab62eafa..74883ff06 100644 --- a/src/nickalias.cpp +++ b/src/nickalias.cpp @@ -62,11 +62,11 @@ NickAlias::~NickAlias() /* Second thing to do: look for an user using the alias * being deleted, and make appropriate changes */ - if ((u = finduser(this->nick)) && u->nc) + if ((u = finduser(this->nick)) && u->Account()) { - ircdproto->SendAccountLogout(u, u->nc); + ircdproto->SendAccountLogout(u, u->Account()); ircdproto->SendUnregisteredNick(u); - u->nc = NULL; + u->Logout(); } /* Accept nicks that have no core, because of database load functions */ |