mirror of
https://github.com/anope/anope.git
synced 2026-07-06 16:13:13 +02:00
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
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user