mirror of
https://github.com/anope/anope.git
synced 2026-07-06 23:03:14 +02:00
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
This commit is contained in:
@@ -4,6 +4,7 @@ A K alias to chanserv kick command
|
||||
A KB alias to chanserv ban command
|
||||
F Unban command to accept an optional nick arg
|
||||
F Small typo in services.conf
|
||||
F Crash when users change their host that are identified to a group, but not a nick
|
||||
|
||||
Anope Version 1.9.1
|
||||
--------------------
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user