diff options
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 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; |