diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-31 01:25:08 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-31 01:25:08 +0000 |
commit | ca6ffba00473ccef893d0b72ae7b63d3a5efa81d (patch) | |
tree | cba94a052e0913e19b7204575a2af0829244ef6d /src/users.cpp | |
parent | 6e7612767e4809fde98399b41ccea5fe964898d3 (diff) |
Cache invalidation in the wrong place, fixes FHOST remote host change bug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6187 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 8 |
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; } |