mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Do not expose ZNC's version number through the web interface
unless there's an active user session. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1877 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -305,7 +305,7 @@ void CWebSock::SetPaths(CModule* pModule, bool bIsTemplate) {
|
||||
void CWebSock::SetVars() {
|
||||
m_Template["SessionUser"] = GetUser();
|
||||
m_Template["SessionIP"] = GetRemoteIP();
|
||||
m_Template["Tag"] = CZNC::GetTag();
|
||||
m_Template["Tag"] = CZNC::GetTag(GetSession()->GetUser() != NULL);
|
||||
m_Template["SkinName"] = GetSkinName();
|
||||
|
||||
if (GetSession()->IsAdmin()) {
|
||||
|
||||
Reference in New Issue
Block a user