summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;