diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-13 19:32:19 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-13 19:32:19 +0000 |
commit | a7ac6a0ac712892652da6dd8696b94d4c6d3ea84 (patch) | |
tree | 9bbcf49157cfda0577c34515cb44d4462818c1da /src/nickalias.cpp | |
parent | 3a956c51be22f1b6f3b6808c9f56fb6b26c7dd1a (diff) |
Added in a modestacker and rewrote almost all of the remaining old mode code
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2696 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 b4b07c6bd..b2950c2e8 100644 --- a/src/nickalias.cpp +++ b/src/nickalias.cpp @@ -65,10 +65,10 @@ NickAlias::~NickAlias() /* Second thing to do: look for an user using the alias * being deleted, and make appropriate changes */ - if ((u = finduser(this->nick))) + if ((u = finduser(this->nick)) && u->nc) { - if (ircd->modeonunreg) - common_svsmode(finduser(this->nick), ircd->modeonunreg, "1"); + ircdproto->SendAccountLogout(u, u->nc); + ircdproto->SendUnregisteredNick(u); u->nc = NULL; } |