summaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/nickalias.cpp2
-rw-r--r--src/users.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nickalias.cpp b/src/nickalias.cpp
index 56deb6076..12e656668 100644
--- a/src/nickalias.cpp
+++ b/src/nickalias.cpp
@@ -57,7 +57,7 @@ NickAlias::NickAlias(const std::string &nickname, NickCore *nickcore)
{
if (nc->ot)
break;
- if (!stricmp(it->first.c_str(), this->nick))
+ if (stricmp(it->first.c_str(), this->nick))
continue;
for (std::list<OperType *>::iterator tit = Config.MyOperTypes.begin(); tit != Config.MyOperTypes.end(); tit++)
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;