summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 804fed79c..f918baefa 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1852,6 +1852,8 @@ bool userrec::ChangeDisplayedHost(const char* host)
/* Fix by Om: userrec::dhost is 65 long, this was truncating some long hosts */
strlcpy(this->dhost,host,64);
+ this->InvalidateCache();
+
if (this->ServerInstance->Config->CycleHosts)
{
for (UCListIter i = this->chans.begin(); i != this->chans.end(); i++)
@@ -1863,8 +1865,6 @@ bool userrec::ChangeDisplayedHost(const char* host)
}
}
- this->InvalidateCache();
-
if (IS_LOCAL(this))
this->WriteServ("396 %s %s :is now your hidden host",this->nick,this->dhost);
@@ -1881,6 +1881,8 @@ bool userrec::ChangeIdent(const char* newident)
strlcpy(this->ident, newident, IDENTMAX+2);
+ this->InvalidateCache();
+
if (this->ServerInstance->Config->CycleHosts)
{
for (UCListIter i = this->chans.begin(); i != this->chans.end(); i++)
@@ -1892,8 +1894,6 @@ bool userrec::ChangeIdent(const char* newident)
}
}
- this->InvalidateCache();
-
return true;
}