summaryrefslogtreecommitdiff
path: root/src/users.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-21 20:30:26 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-21 20:30:26 +0000
commit0a91d582c9a070acd99977996da841134b2085ad (patch)
tree1f0973cfd1369150a534d7c67bf6e8d29604eea1 /src/users.c
parent9b06dc50463b7d528c35ced478b514f1459d02dc (diff)
Fixed a crash when a users realname changes when they are on a registered nick but not identified, and made my last commit about case insensitive oper names really work
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2972 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/users.c')
-rw-r--r--src/users.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.c b/src/users.c
index 6a744406f..c1532bc27 100644
--- a/src/users.c
+++ b/src/users.c
@@ -211,7 +211,7 @@ void User::SetRealname(const std::string &srealname)
this->realname = sstrdup(srealname.c_str());
NickAlias *na = findnick(this->nick);
- if (na && (this->IsIdentified() || (!this->nc->HasFlag(NI_SECURE) && IsRecognized())))
+ if (na && (this->IsIdentified() || (!na->nc->HasFlag(NI_SECURE) && this->IsRecognized())))
{
if (na->last_realname)
delete [] na->last_realname;