diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-02 08:21:12 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-02 08:21:12 +0000 |
commit | de824a599ab162324e4e24c88945ba874dbf1ed9 (patch) | |
tree | 7152e8b3aa8e697d69c98590ce3dca11e7b1caed /src/users.c | |
parent | a819cb0cc0f54a042a088dfba9c1f6b817928641 (diff) |
Fixed bug #1121 - Fixes a potential crash when a user changes hosts
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2725 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/users.c')
-rw-r--r-- | src/users.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.c b/src/users.c index 0197b08d5..52fcaf799 100644 --- a/src/users.c +++ b/src/users.c @@ -390,7 +390,7 @@ void User::UpdateHost() { NickAlias *na = findnick(this->nick); - if (nick_identified(this) || (na && !na->nc->HasFlag(NI_SECURE) && IsRecognized())) + if (na && (this->nc && na->nc == this->nc || !na->nc->HasFlag(NI_SECURE) && IsRecognized())) { if (na->last_usermask) delete [] na->last_usermask; |