From ca6ffba00473ccef893d0b72ae7b63d3a5efa81d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 31 Dec 2006 01:25:08 +0000 Subject: 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 --- src/users.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/users.cpp') 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; } -- cgit v1.3.1-10-gc9f91