From 98cb5d73ee686acff62e1969df0807e7ab3e3ade Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 13 May 2009 17:43:35 +0000 Subject: 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 --- src/users.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/users.cpp') 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() { } -- cgit v1.2.3