summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-30 19:48:59 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-30 19:48:59 +0000
commitb3ab9c527a511202d956d019312857a57bd887a2 (patch)
tree3aa1dd03c0a7a2eaa6b5e9b2ad90c33e89826e31 /src
parent1a21e5e5855d40eb991d86df98b3451dcd865941 (diff)
Fix broken cloaking introduced by last commit (we need to invalidate the cache after setting the new string, not before)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6181 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/users.cpp b/src/users.cpp
index b4d7f15dc..804fed79c 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1200,8 +1200,8 @@ void userrec::FullConnect(CullList* Goners)
Goners->AddItem(this, reason);
return;
}
- }
+ }
this->WriteServ("NOTICE Auth :Welcome to \002%s\002!",ServerInstance->Config->Network);
this->WriteServ("001 %s :Welcome to the %s IRC Network %s!%s@%s",this->nick, ServerInstance->Config->Network, this->nick, this->ident, this->host);
@@ -1829,6 +1829,7 @@ bool userrec::ChangeName(const char* gecos)
FOREACH_MOD(I_OnChangeName,OnChangeName(this,gecos));
}
strlcpy(this->fullname,gecos,MAXGECOS+1);
+
return true;
}
@@ -1837,9 +1838,6 @@ bool userrec::ChangeDisplayedHost(const char* host)
if (!strcmp(host, this->dhost))
return true;
- /* Invalidate cache */
- this->InvalidateCache();
-
if (IS_LOCAL(this))
{
int MOD_RESULT = 0;
@@ -1865,6 +1863,8 @@ 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);
@@ -1876,9 +1876,6 @@ bool userrec::ChangeIdent(const char* newident)
if (!strcmp(newident, this->ident))
return true;
- /* Invalidate cache */
- this->InvalidateCache();
-
if (this->ServerInstance->Config->CycleHosts)
this->WriteCommonExcept("%s","QUIT :Changing ident");
@@ -1895,6 +1892,8 @@ bool userrec::ChangeIdent(const char* newident)
}
}
+ this->InvalidateCache();
+
return true;
}