diff options
| author | 2009-05-13 17:43:35 +0000 | |
|---|---|---|
| committer | 2009-05-13 17:43:35 +0000 | |
| commit | 98cb5d73ee686acff62e1969df0807e7ab3e3ade (patch) | |
| tree | 7ea1cbe415f26e8c85cbcb8f7f103e4101176af4 /src/users.cpp | |
| parent | Show correct server source to users on FTOPIC and FMODE (diff) | |
Hide server sources if HideWhoisServer is set, noticed by Brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11381 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index 9c295caad..5e27469e9 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -2051,6 +2051,20 @@ void FakeUser::SetFakeServer(std::string name) this->server = nick.c_str(); } +const std::string FakeUser::GetFullHost() +{ + if (ServerInstance->Config->HideWhoisServer) + return ServerInstance->Config->HideWhoisServer; + return nick; +} + +const std::string FakeUser::GetFullRealHost() +{ + if (ServerInstance->Config->HideWhoisServer) + return ServerInstance->Config->HideWhoisServer; + return nick; +} + VisData::VisData() { } |
